/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * VentanaPrincipal.java
 *
 * Created on 13-jul-2010, 14:33:12
 */

package gestionvoluntariados;

import com.dao.exceptions.IllegalOrphanException;
import com.dao.exceptions.NonexistentEntityException;
import java.awt.Cursor;
import java.io.IOException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JOptionPane;
import com.dao.*;
import com.model.*;
import java.awt.BasicStroke;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.io.File;
import java.util.List;
import javax.swing.JFileChooser;
import javax.swing.filechooser.FileNameExtensionFilter;
import java.awt.Image;
import java.awt.geom.Rectangle2D;
import java.io.ByteArrayInputStream;
import java.io.FileInputStream;
import java.io.InputStream;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Iterator;
import java.util.Vector;
import javax.imageio.ImageIO;
import javax.imageio.ImageReadParam;
import javax.imageio.ImageReader;
import javax.imageio.stream.ImageInputStream;
import javax.swing.Icon;
import javax.swing.ImageIcon;
import javax.swing.table.DefaultTableModel;


/**
 *
 * @author Alberto
 */
public class VentanaPrincipal extends javax.swing.JFrame {

    MiModelo miModel = new MiModelo();
    MiModelo2 miModel2 = new MiModelo2();
    MiModelo3 miModel3 = new MiModelo3();
    MiModelo4 miModel4 = new MiModelo4();
    DefaultTableModel tabModel=new DefaultTableModel();
    DefaultTableModel tabModel2=new DefaultTableModel();
    DefaultTableModel tabModel3=new DefaultTableModel();
    DefaultTableModel tabModel7=new DefaultTableModel();
    DefaultTableModel tabModel8=new DefaultTableModel();
    DefaultTableModel tabModel9=new DefaultTableModel();
    DefaultTableModel tabModel10=new DefaultTableModel();
    boolean panel10 = false;

    /** Creates new form VentanaPrincipal */
    public VentanaPrincipal() {
        initComponents();

        this.setLocationRelativeTo(null);

        setTitle("Sistema de Gestion de voluntariados");

        jPanel1.setVisible(true);
        jPanel2.setVisible(false);
        jPanel3.setVisible(false);
        jPanel5.setVisible(false);
        jPanel6.setVisible(false);
        jPanel7.setVisible(false);
        jPanel8.setVisible(false);
        jPanel9.setVisible(false);
        jPanel10.setVisible(false);
        jPanel12.setVisible(false);
        jTextField8.setVisible(false);
        jTextField9.setVisible(false);
        jTextField25.setVisible(false);
        jTextField28.setVisible(false);
        jComboBox17.setVisible(false);

        

        //Código para hallar el id mayor de la tabla
        int idmax = 0;
        ServicioJpaController Sctr = new ServicioJpaController();
        List<Servicio> lista = Sctr.findServicioEntities();
        for(Servicio servicio : lista) {
            if (servicio.getIdservicio() > idmax)
                idmax = servicio.getIdservicio();
        }

        jTextField14.setText(Integer.toString(idmax+1));

        //---------------Llenado de componentes de las tabla 1------------------

        Vector columns= new Vector();
        String[] colName =
        {
            "Cedula",
            "Nombre",
            "Apellido"
        };

        for(int i=0;i<colName.length;i++) {
            columns.addElement((String)colName[i]);
        }

        tabModel.setColumnIdentifiers(columns);
        jTable1.setModel(tabModel);


        VoluntariadoJpaController Vctr = new VoluntariadoJpaController();
        List<Voluntariado> lista1 = Vctr.findVoluntariadoEntities();
        for(Voluntariado voluntariado : lista1) {

           Vector rows=new Vector();
   
           rows.add(voluntariado.getCedula());
           rows.add(voluntariado.getNombre());
           rows.add(voluntariado.getApellido());

           tabModel.addRow(rows);

        }

        jTable1.setModel(tabModel);

        columns.removeAllElements();

        //---------------Llenado de componentes de las tabla 2------------------

        String[] colName1 =
        {
            "Numero",
            "Proyecto",
            "Centro",
            "Coordinador Proyecto",
            "Coordinador Escuela"
        };

        for(int i=0;i<colName1.length;i++) {
            columns.addElement((String)colName1[i]);
        }

        tabModel2.setColumnIdentifiers(columns);
        jTable2.setModel(tabModel2);

        for(Servicio servicio : lista) {
           Vector rows=new Vector();

           rows.add(servicio.getIdservicio());
           rows.add(servicio.getProyecto());
           rows.add(servicio.getCentro());
           rows.add(servicio.getCoordinadorproyecto());
           rows.add(servicio.getCoordinadorescuela());

           tabModel2.addRow(rows);

        }

        jTable2.setModel(tabModel2);

        columns.removeAllElements();

        //--------------Llenado de componentes de las tabla 3-------------------

        String[] colName2 =
        {
            "Cédula",
            "Nombre",
            "Apellido",
            "Núm Proyecto",
            "Fecha Planilla",
            "Fecha Inicio",
            "Fecha Fin",
            "Horas Cumplidas",
            "Horas Totales"
        };

        for(int i=0;i<colName2.length;i++) {
            columns.addElement((String)colName2[i]);
        }

        tabModel3.setColumnIdentifiers(columns);
        jTable3.setModel(tabModel3);

        ServicioHasVoluntariadoJpaController SVctr = new ServicioHasVoluntariadoJpaController();
        List<ServicioHasVoluntariado> lista2 = SVctr.findServicioHasVoluntariadoEntities();
        for(ServicioHasVoluntariado shv : lista2) {
           Vector rows=new Vector();

           SimpleDateFormat formato = new SimpleDateFormat("dd/MM/yyyy");

           rows.add(shv.getVoluntariado().getCedula());
           rows.add(shv.getVoluntariado().getNombre());
           rows.add(shv.getVoluntariado().getApellido());
           rows.add(shv.getServicio().getIdservicio());

           if(shv.getFechaplanilla() != null)
                rows.add(formato.format(shv.getFechaplanilla()));
           else
               rows.add(null);

           rows.add(formato.format(shv.getFechaini()));
           
           if(shv.getFechafin() != null)
               rows.add(formato.format(shv.getFechafin()));
           else
               rows.add(null);

           rows.add(shv.getNumhoras());
           rows.add(shv.getHorastotal());

           tabModel3.addRow(rows);

        }

        jTable3.setModel(tabModel3);

        //-------------Llenado de componentes de las tabla 4--------------------

        Vector columns1= new Vector();
        String[] colName3 =
        {
            "Selección",
            "Cédula",
            "Nombre",
            "Apellido"
        };

        for(int i=0;i<colName3.length;i++) {
            columns1.addElement((String)colName3[i]);
        }

        miModel.setColumnIdentifiers(columns1);
        jTable4.setModel(miModel);

        List<Voluntariado> lista3 = Vctr.findVoluntariadoEntities();
        for(Voluntariado voluntariado : lista3) {
           Vector rows=new Vector();

           rows.add(voluntariado.getInteres());
           rows.add(voluntariado.getCedula());
           rows.add(voluntariado.getNombre());
           rows.add(voluntariado.getApellido());

           miModel.addRow(rows);
        }

        jTable4.setModel(miModel);

        //---------------Llenado de componentes de las tabla 5------------------

        Vector columns4= new Vector();
        String[] colName6 =
        {
            "Selección",
            "Numero",
            "Proyecto",
            "Centro"
        };

        for(int i=0;i<colName6.length;i++) {
            columns4.addElement((String)colName6[i]);
        }

        miModel3.setColumnIdentifiers(columns4);
        jTable5.setModel(miModel3);

        for(Servicio servicio : lista) {
           Vector rows=new Vector();

           rows.add(servicio.getSeleccion());
           rows.add(servicio.getIdservicio());
           rows.add(servicio.getProyecto());
           rows.add(servicio.getCentro());

           miModel3.addRow(rows);

        }

        jTable5.setModel(miModel3);

        //--------------Llenado de componentes de las tabla 6-------------------

        Vector columns2= new Vector();
        String[] colName4 =
        {
            "Selección",
            "Cédula",
            "Nombre",
            "Num Proyecto",
            "Proyecto"
        };

        for(int i=0;i<colName4.length;i++) {
            columns2.addElement((String)colName4[i]);
        }

        miModel2.setColumnIdentifiers(columns2);
        jTable6.setModel(miModel2);

        List<ServicioHasVoluntariado> lista4 = SVctr.findServicioHasVoluntariadoEntities();
        for(ServicioHasVoluntariado shv : lista4) {
           Vector rows=new Vector();

           rows.add(shv.getSeleccion());
           rows.add(shv.getVoluntariado().getCedula());
           rows.add(shv.getVoluntariado().getNombre());
           rows.add(shv.getServicio().getIdservicio());
           rows.add(shv.getServicio().getProyecto());

           miModel2.addRow(rows);
        }

        jTable6.setModel(miModel2);

        //---------------Llenado de componentes de las tabla 7------------------

        Vector columns3= new Vector();
        String[] colName5 =
        {
            "Numero",
            "Proyecto",
            "Centro"
        };

        for(int i=0;i<colName5.length;i++) {
            columns3.addElement((String)colName5[i]);
        }

        tabModel7.setColumnIdentifiers(columns3);
        jTable7.setModel(tabModel7);

        for(Servicio servicio : lista) {
           Vector rows=new Vector();

           rows.add(servicio.getIdservicio());
           rows.add(servicio.getProyecto());
           rows.add(servicio.getCentro());

           tabModel7.addRow(rows);

        }

        jTable7.setModel(tabModel7);

        //---------------Llenado de componentes de las tabla 8------------------

        Vector columns5= new Vector();
        String[] colName7 =
        {
            "Cedula",
            "Nombre",
            "Apellido"
        };

        for(int i=0;i<colName7.length;i++) {
            columns5.addElement((String)colName7[i]);
        }

        tabModel8.setColumnIdentifiers(columns5);
        jTable8.setModel(tabModel8);

        columns5.removeAllElements();

        //---------------Llenado de componentes de las tabla 9------------------

        String[] colName8 =
        {
            "Numero",
            "Proyecto",
            "Centro",
            "Coordinador Proyecto",
            "Coordinador Escuela"
        };

        for(int i=0;i<colName8.length;i++) {
            columns5.addElement((String)colName8[i]);
        }

        tabModel9.setColumnIdentifiers(columns5);
        jTable9.setModel(tabModel9);

        columns5.removeAllElements();

        //--------------Llenado de componentes de las tabla 10-------------------

        String[] colName9 =
        {
            "Cédula",
            "Nombre",
            "Apellido",
            "Núm Proyecto",
            "Fecha Planilla",
            "Fecha Inicio",
            "Fecha Fin",
            "Horas Cumplidas",
            "Horas Totales"
        };

        for(int i=0;i<colName9.length;i++) {
            columns5.addElement((String)colName9[i]);
        }

        tabModel10.setColumnIdentifiers(columns5);
        jTable10.setModel(tabModel10);

         //---------------Llenado de componentes de las tabla 11------------------

        Vector columns6= new Vector();
        String[] colName10 =
        {
            "Selección",
            "Cédula",
            "Nombre",
            "Apellido",
            "Teléfono",
            "Email"
        };

        for(int i=0;i<colName10.length;i++) {
            columns6.addElement((String)colName10[i]);
        }

        miModel4.setColumnIdentifiers(columns6);
        jTable11.setModel(miModel4);

        PostuladoJpaController Pctr = new PostuladoJpaController();
        List<Postulado> lista5 = Pctr.findPostuladoEntities();

        for(Postulado postulado : lista5) {
           Vector rows=new Vector();

           rows.add(postulado.getSeleccion());
           rows.add(postulado.getCedula());
           rows.add(postulado.getNombre());
           rows.add(postulado.getApellido());
           rows.add(postulado.getTelefono());
           rows.add(postulado.getEmail());

           miModel4.addRow(rows);

        }

        jTable11.setModel(miModel4);

    }


    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLayeredPane5 = new javax.swing.JLayeredPane();
        jPanel1 = new javax.swing.JPanel();
        jLayeredPane1 = new javax.swing.JLayeredPane();
        jLabel134 = new javax.swing.JLabel();
        jButton1 = new javax.swing.JButton();
        jButton2 = new javax.swing.JButton();
        jButton8 = new javax.swing.JButton();
        jButton26 = new javax.swing.JButton();
        jButton11 = new javax.swing.JButton();
        jLabel2 = new javax.swing.JLabel();
        jLayeredPane15 = new javax.swing.JLayeredPane();
        jComboBox17 = new javax.swing.JComboBox();
        jComboBox4 = new javax.swing.JComboBox();
        jButton10 = new javax.swing.JButton();
        jTextField19 = new javax.swing.JTextField();
        jLabel1 = new javax.swing.JLabel();
        jPanel2 = new javax.swing.JPanel();
        jLabel49 = new javax.swing.JLabel();
        jLabel22 = new javax.swing.JLabel();
        jTabbedPane1 = new javax.swing.JTabbedPane();
        jLayeredPane2 = new javax.swing.JLayeredPane();
        jLayeredPane6 = new javax.swing.JLayeredPane();
        jComboBox1 = new javax.swing.JComboBox();
        jLabel10 = new javax.swing.JLabel();
        jLabel15 = new javax.swing.JLabel();
        jLabel11 = new javax.swing.JLabel();
        jLabel13 = new javax.swing.JLabel();
        jComboBox5 = new javax.swing.JComboBox();
        jLabel57 = new javax.swing.JLabel();
        jComboBox6 = new javax.swing.JComboBox();
        jTextField6 = new javax.swing.JTextField();
        jLabel14 = new javax.swing.JLabel();
        jComboBox2 = new javax.swing.JComboBox();
        jLabel12 = new javax.swing.JLabel();
        jLabel56 = new javax.swing.JLabel();
        jTextField9 = new javax.swing.JTextField();
        jComboBox7 = new javax.swing.JComboBox();
        jComboBox3 = new javax.swing.JComboBox();
        jLayeredPane7 = new javax.swing.JLayeredPane();
        jTextField4 = new javax.swing.JTextField();
        jTextField3 = new javax.swing.JTextField();
        jLabel36 = new javax.swing.JLabel();
        jLabel33 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel47 = new javax.swing.JLabel();
        jTextField1 = new javax.swing.JTextField();
        jDateChooser1 = new com.toedter.calendar.JDateChooser();
        jLabel9 = new javax.swing.JLabel();
        jButton9 = new javax.swing.JButton();
        jLabel3 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTextArea1 = new javax.swing.JTextArea();
        jLabel35 = new javax.swing.JLabel();
        jLabel34 = new javax.swing.JLabel();
        jTextField5 = new javax.swing.JTextField();
        jTextField2 = new javax.swing.JTextField();
        jTextField18 = new javax.swing.JTextField();
        jLabel7 = new javax.swing.JLabel();
        jButton3 = new javax.swing.JButton();
        jLabel32 = new javax.swing.JLabel();
        jLayeredPane3 = new javax.swing.JLayeredPane();
        jLabel16 = new javax.swing.JLabel();
        jLabel21 = new javax.swing.JLabel();
        jLabel41 = new javax.swing.JLabel();
        jTextField14 = new javax.swing.JTextField();
        jTextField12 = new javax.swing.JTextField();
        jTextField7 = new javax.swing.JTextField();
        jLabel23 = new javax.swing.JLabel();
        jLabel18 = new javax.swing.JLabel();
        jTextField8 = new javax.swing.JTextField();
        jButton4 = new javax.swing.JButton();
        jComboBox8 = new javax.swing.JComboBox();
        jLabel20 = new javax.swing.JLabel();
        jScrollPane2 = new javax.swing.JScrollPane();
        jTextArea2 = new javax.swing.JTextArea();
        jLabel17 = new javax.swing.JLabel();
        jLabel39 = new javax.swing.JLabel();
        jTextField13 = new javax.swing.JTextField();
        jLabel40 = new javax.swing.JLabel();
        jLabel37 = new javax.swing.JLabel();
        jLabel38 = new javax.swing.JLabel();
        jPanel3 = new javax.swing.JPanel();
        jLabel50 = new javax.swing.JLabel();
        jTabbedPane2 = new javax.swing.JTabbedPane();
        jLayeredPane8 = new javax.swing.JLayeredPane();
        jLabel48 = new javax.swing.JLabel();
        jLayeredPane11 = new javax.swing.JLayeredPane();
        jLabel59 = new javax.swing.JLabel();
        jLabel54 = new javax.swing.JLabel();
        jLabel53 = new javax.swing.JLabel();
        jLabel55 = new javax.swing.JLabel();
        jLabel51 = new javax.swing.JLabel();
        jLabel60 = new javax.swing.JLabel();
        jPanel4 = new javax.swing.JPanel();
        jScrollPane3 = new javax.swing.JScrollPane();
        jTable1 = new javax.swing.JTable();
        jLayeredPane12 = new javax.swing.JLayeredPane();
        jLabel63 = new javax.swing.JLabel();
        jLabel68 = new javax.swing.JLabel();
        jLabel67 = new javax.swing.JLabel();
        jLabel64 = new javax.swing.JLabel();
        jLabel66 = new javax.swing.JLabel();
        jLabel65 = new javax.swing.JLabel();
        jLabel58 = new javax.swing.JLabel();
        jLayeredPane13 = new javax.swing.JLayeredPane();
        jLabel70 = new javax.swing.JLabel();
        jLabel69 = new javax.swing.JLabel();
        jLabel77 = new javax.swing.JLabel();
        jScrollPane4 = new javax.swing.JScrollPane();
        jTextArea3 = new javax.swing.JTextArea();
        jButton13 = new javax.swing.JButton();
        jButton5 = new javax.swing.JButton();
        jLayeredPane9 = new javax.swing.JLayeredPane();
        jScrollPane5 = new javax.swing.JScrollPane();
        jTable2 = new javax.swing.JTable();
        jLayeredPane14 = new javax.swing.JLayeredPane();
        jScrollPane6 = new javax.swing.JScrollPane();
        jTextArea4 = new javax.swing.JTextArea();
        jButton16 = new javax.swing.JButton();
        jLayeredPane10 = new javax.swing.JLayeredPane();
        jScrollPane7 = new javax.swing.JScrollPane();
        jTable3 = new javax.swing.JTable();
        jLayeredPane20 = new javax.swing.JLayeredPane();
        jScrollPane12 = new javax.swing.JScrollPane();
        jTextArea5 = new javax.swing.JTextArea();
        jLabel27 = new javax.swing.JLabel();
        jLabel25 = new javax.swing.JLabel();
        jButton21 = new javax.swing.JButton();
        jLabel52 = new javax.swing.JLabel();
        jPanel5 = new javax.swing.JPanel();
        jLabel61 = new javax.swing.JLabel();
        jLabel62 = new javax.swing.JLabel();
        jTabbedPane3 = new javax.swing.JTabbedPane();
        jLayeredPane16 = new javax.swing.JLayeredPane();
        jScrollPane8 = new javax.swing.JScrollPane();
        jTable4 = new javax.swing.JTable();
        jLayeredPane17 = new javax.swing.JLayeredPane();
        jScrollPane9 = new javax.swing.JScrollPane();
        jTable5 = new javax.swing.JTable();
        jLayeredPane18 = new javax.swing.JLayeredPane();
        jScrollPane10 = new javax.swing.JScrollPane();
        jTable6 = new javax.swing.JTable();
        jButton12 = new javax.swing.JButton();
        jPanel6 = new javax.swing.JPanel();
        jLabel71 = new javax.swing.JLabel();
        jLabel72 = new javax.swing.JLabel();
        jLabel19 = new javax.swing.JLabel();
        jLayeredPane4 = new javax.swing.JLayeredPane();
        jTextField15 = new javax.swing.JTextField();
        jTextField17 = new javax.swing.JTextField();
        jLabel42 = new javax.swing.JLabel();
        jLabel30 = new javax.swing.JLabel();
        jLabel28 = new javax.swing.JLabel();
        jLabel31 = new javax.swing.JLabel();
        jDateChooser4 = new com.toedter.calendar.JDateChooser();
        jDateChooser2 = new com.toedter.calendar.JDateChooser();
        jLabel26 = new javax.swing.JLabel();
        jLabel24 = new javax.swing.JLabel();
        jButton7 = new javax.swing.JButton();
        jLabel29 = new javax.swing.JLabel();
        jTextField16 = new javax.swing.JTextField();
        jDateChooser3 = new com.toedter.calendar.JDateChooser();
        jLabel45 = new javax.swing.JLabel();
        jLabel46 = new javax.swing.JLabel();
        jLayeredPane19 = new javax.swing.JLayeredPane();
        jScrollPane11 = new javax.swing.JScrollPane();
        jTable7 = new javax.swing.JTable();
        jPanel7 = new javax.swing.JPanel();
        jLabel73 = new javax.swing.JLabel();
        jLabel43 = new javax.swing.JLabel();
        jLabel74 = new javax.swing.JLabel();
        jLayeredPane23 = new javax.swing.JLayeredPane();
        jLayeredPane21 = new javax.swing.JLayeredPane();
        jTextField23 = new javax.swing.JTextField();
        jLabel81 = new javax.swing.JLabel();
        jTextField22 = new javax.swing.JTextField();
        jLabel79 = new javax.swing.JLabel();
        jTextField26 = new javax.swing.JTextField();
        jScrollPane13 = new javax.swing.JScrollPane();
        jTextArea6 = new javax.swing.JTextArea();
        jLabel76 = new javax.swing.JLabel();
        jTextField11 = new javax.swing.JTextField();
        jLabel44 = new javax.swing.JLabel();
        jLabel78 = new javax.swing.JLabel();
        jDateChooser5 = new com.toedter.calendar.JDateChooser();
        jLabel86 = new javax.swing.JLabel();
        jLabel75 = new javax.swing.JLabel();
        jLabel84 = new javax.swing.JLabel();
        jComboBox15 = new javax.swing.JComboBox();
        jButton14 = new javax.swing.JButton();
        jLabel85 = new javax.swing.JLabel();
        jTextField21 = new javax.swing.JTextField();
        jTextField20 = new javax.swing.JTextField();
        jLayeredPane22 = new javax.swing.JLayeredPane();
        jLabel92 = new javax.swing.JLabel();
        jLabel91 = new javax.swing.JLabel();
        jLabel94 = new javax.swing.JLabel();
        jLabel87 = new javax.swing.JLabel();
        jComboBox12 = new javax.swing.JComboBox();
        jLabel93 = new javax.swing.JLabel();
        jComboBox11 = new javax.swing.JComboBox();
        jLabel90 = new javax.swing.JLabel();
        jLabel88 = new javax.swing.JLabel();
        jComboBox14 = new javax.swing.JComboBox();
        jComboBox10 = new javax.swing.JComboBox();
        jLabel89 = new javax.swing.JLabel();
        jComboBox9 = new javax.swing.JComboBox();
        jTextField24 = new javax.swing.JTextField();
        jTextField25 = new javax.swing.JTextField();
        jComboBox13 = new javax.swing.JComboBox();
        jButton6 = new javax.swing.JButton();
        jButton15 = new javax.swing.JButton();
        jPanel8 = new javax.swing.JPanel();
        jLabel80 = new javax.swing.JLabel();
        jLabel82 = new javax.swing.JLabel();
        jLabel83 = new javax.swing.JLabel();
        jLayeredPane24 = new javax.swing.JLayeredPane();
        jLabel99 = new javax.swing.JLabel();
        jTextField28 = new javax.swing.JTextField();
        jLabel97 = new javax.swing.JLabel();
        jScrollPane14 = new javax.swing.JScrollPane();
        jTextArea7 = new javax.swing.JTextArea();
        jTextField29 = new javax.swing.JTextField();
        jTextField27 = new javax.swing.JTextField();
        jComboBox16 = new javax.swing.JComboBox();
        jLabel95 = new javax.swing.JLabel();
        jLabel98 = new javax.swing.JLabel();
        jTextField10 = new javax.swing.JTextField();
        jLabel100 = new javax.swing.JLabel();
        jTextField30 = new javax.swing.JTextField();
        jButton18 = new javax.swing.JButton();
        jButton19 = new javax.swing.JButton();
        jLabel96 = new javax.swing.JLabel();
        jPanel9 = new javax.swing.JPanel();
        jLabel101 = new javax.swing.JLabel();
        jLabel102 = new javax.swing.JLabel();
        jLabel103 = new javax.swing.JLabel();
        jLayeredPane25 = new javax.swing.JLayeredPane();
        jTextField31 = new javax.swing.JTextField();
        jDateChooser6 = new com.toedter.calendar.JDateChooser();
        jLabel108 = new javax.swing.JLabel();
        jDateChooser8 = new com.toedter.calendar.JDateChooser();
        jLabel105 = new javax.swing.JLabel();
        jLabel106 = new javax.swing.JLabel();
        jDateChooser7 = new com.toedter.calendar.JDateChooser();
        jLabel110 = new javax.swing.JLabel();
        jTextField33 = new javax.swing.JTextField();
        jLabel109 = new javax.swing.JLabel();
        jLabel107 = new javax.swing.JLabel();
        jLabel104 = new javax.swing.JLabel();
        jButton17 = new javax.swing.JButton();
        jTextField34 = new javax.swing.JTextField();
        jButton20 = new javax.swing.JButton();
        jTextField32 = new javax.swing.JTextField();
        jPanel10 = new javax.swing.JPanel();
        jLabel111 = new javax.swing.JLabel();
        jTabbedPane4 = new javax.swing.JTabbedPane();
        jLayeredPane26 = new javax.swing.JLayeredPane();
        jLabel113 = new javax.swing.JLabel();
        jLayeredPane27 = new javax.swing.JLayeredPane();
        jLabel114 = new javax.swing.JLabel();
        jLabel115 = new javax.swing.JLabel();
        jLabel116 = new javax.swing.JLabel();
        jLabel117 = new javax.swing.JLabel();
        jLabel118 = new javax.swing.JLabel();
        jLabel119 = new javax.swing.JLabel();
        jPanel11 = new javax.swing.JPanel();
        jScrollPane15 = new javax.swing.JScrollPane();
        jTable8 = new javax.swing.JTable();
        jLayeredPane28 = new javax.swing.JLayeredPane();
        jLabel120 = new javax.swing.JLabel();
        jLabel121 = new javax.swing.JLabel();
        jLabel122 = new javax.swing.JLabel();
        jLabel123 = new javax.swing.JLabel();
        jLabel124 = new javax.swing.JLabel();
        jLabel125 = new javax.swing.JLabel();
        jLabel126 = new javax.swing.JLabel();
        jLayeredPane29 = new javax.swing.JLayeredPane();
        jScrollPane16 = new javax.swing.JScrollPane();
        jTextArea8 = new javax.swing.JTextArea();
        jLabel129 = new javax.swing.JLabel();
        jLabel127 = new javax.swing.JLabel();
        jLabel128 = new javax.swing.JLabel();
        jButton22 = new javax.swing.JButton();
        jButton23 = new javax.swing.JButton();
        jLayeredPane30 = new javax.swing.JLayeredPane();
        jScrollPane17 = new javax.swing.JScrollPane();
        jTable9 = new javax.swing.JTable();
        jLayeredPane31 = new javax.swing.JLayeredPane();
        jScrollPane18 = new javax.swing.JScrollPane();
        jTextArea9 = new javax.swing.JTextArea();
        jButton24 = new javax.swing.JButton();
        jLayeredPane32 = new javax.swing.JLayeredPane();
        jScrollPane19 = new javax.swing.JScrollPane();
        jTable10 = new javax.swing.JTable();
        jLayeredPane33 = new javax.swing.JLayeredPane();
        jScrollPane20 = new javax.swing.JScrollPane();
        jTextArea10 = new javax.swing.JTextArea();
        jLabel130 = new javax.swing.JLabel();
        jLabel131 = new javax.swing.JLabel();
        jButton25 = new javax.swing.JButton();
        jLabel112 = new javax.swing.JLabel();
        jPanel12 = new javax.swing.JPanel();
        jLabel132 = new javax.swing.JLabel();
        jLabel133 = new javax.swing.JLabel();
        jLayeredPane34 = new javax.swing.JLayeredPane();
        jScrollPane21 = new javax.swing.JScrollPane();
        jTable11 = new javax.swing.JTable();
        jScrollPane22 = new javax.swing.JScrollPane();
        jTextArea11 = new javax.swing.JTextArea();
        jButton27 = new javax.swing.JButton();
        jButton28 = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setResizable(false);
        addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                formMouseEntered(evt);
            }
        });

        jLayeredPane5.setMaximumSize(new java.awt.Dimension(800, 600));
        jLayeredPane5.setMinimumSize(new java.awt.Dimension(800, 600));
        jLayeredPane5.setOpaque(true);

        jPanel1.setPreferredSize(new java.awt.Dimension(800, 600));

        jLayeredPane1.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)), "Menú Principal", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 18), new java.awt.Color(51, 102, 255))); // NOI18N
        jLayeredPane1.setMinimumSize(new java.awt.Dimension(800, 0));

        jLabel134.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/help.png"))); // NOI18N
        jLabel134.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jLabel134MouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                jLabel134MouseEntered(evt);
            }
        });
        jLabel134.setBounds(750, 410, 32, 30);
        jLayeredPane1.add(jLabel134, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/add.png"))); // NOI18N
        jButton1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                jButton1MouseEntered(evt);
            }
        });
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });
        jButton1.setBounds(190, 130, 60, 60);
        jLayeredPane1.add(jButton1, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jButton2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/exit.png"))); // NOI18N
        jButton2.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                jButton2MouseEntered(evt);
            }
        });
        jButton2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton2ActionPerformed(evt);
            }
        });
        jButton2.setBounds(370, 350, 60, 60);
        jLayeredPane1.add(jButton2, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jButton8.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/search.png"))); // NOI18N
        jButton8.setMaximumSize(new java.awt.Dimension(97, 73));
        jButton8.setMinimumSize(new java.awt.Dimension(97, 73));
        jButton8.setPreferredSize(new java.awt.Dimension(97, 73));
        jButton8.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                jButton8MouseEntered(evt);
            }
        });
        jButton8.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton8ActionPerformed(evt);
            }
        });
        jButton8.setBounds(370, 130, 60, 60);
        jLayeredPane1.add(jButton8, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jButton26.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/userspost.png"))); // NOI18N
        jButton26.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                jButton26MouseEntered(evt);
            }
        });
        jButton26.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton26ActionPerformed(evt);
            }
        });
        jButton26.setBounds(370, 240, 60, 60);
        jLayeredPane1.add(jButton26, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jButton11.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/delete.png"))); // NOI18N
        jButton11.setPreferredSize(new java.awt.Dimension(60, 60));
        jButton11.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                jButton11MouseEntered(evt);
            }
        });
        jButton11.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton11ActionPerformed(evt);
            }
        });
        jButton11.setBounds(530, 130, 60, 60);
        jLayeredPane1.add(jButton11, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel2.setFont(new java.awt.Font("Tahoma", 0, 12));
        jLabel2.setForeground(new java.awt.Color(0, 102, 255));
        jLabel2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel2.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        jLabel2.setBounds(230, 60, 340, 20);
        jLayeredPane1.add(jLabel2, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLayeredPane15.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Búsqueda", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 11), new java.awt.Color(0, 102, 255))); // NOI18N

        jComboBox17.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        jComboBox17.setBounds(10, 30, 130, 20);
        jLayeredPane15.add(jComboBox17, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jComboBox4.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Cédula", "Num proyecto", "Expediente", "Carrera", "Año", "Centro", "Coordinador", "Voluntariado", "Ley de Servicio Comunitario", "Cátedra" }));
        jComboBox4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jComboBox4ActionPerformed(evt);
            }
        });
        jComboBox4.setBounds(150, 30, 110, 20);
        jLayeredPane15.add(jComboBox4, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jButton10.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/search1.png"))); // NOI18N
        jButton10.setText("Buscar");
        jButton10.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton10ActionPerformed(evt);
            }
        });
        jButton10.setBounds(270, 30, 90, 25);
        jLayeredPane15.add(jButton10, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jTextField19.setBounds(10, 30, 110, 20);
        jLayeredPane15.add(jTextField19, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/logo_proyeccion_a_la_comunidad(transparente).png"))); // NOI18N

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel1)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jLayeredPane15, javax.swing.GroupLayout.DEFAULT_SIZE, 370, Short.MAX_VALUE)
                .addContainerGap())
            .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(jLayeredPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 800, Short.MAX_VALUE))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLayeredPane15, javax.swing.GroupLayout.PREFERRED_SIZE, 77, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel1))
                .addContainerGap(495, Short.MAX_VALUE))
            .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                    .addContainerGap(141, Short.MAX_VALUE)
                    .addComponent(jLayeredPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 459, javax.swing.GroupLayout.PREFERRED_SIZE)))
        );

        jPanel1.setBounds(0, 0, 800, 600);
        jLayeredPane5.add(jPanel1, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jPanel2.setPreferredSize(new java.awt.Dimension(800, 600));

        jLabel49.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/home.png"))); // NOI18N
        jLabel49.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jLabel49MouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                jLabel49MouseEntered(evt);
            }
        });

        jLabel22.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/logo_proyeccion_a_la_comunidad(transparente).png"))); // NOI18N

        jTabbedPane1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Agregar Datos al Sistema", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 14), new java.awt.Color(51, 102, 255))); // NOI18N

        jLayeredPane6.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Información en caso de que el estudiante sea alumno de la UCAB", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 11), new java.awt.Color(0, 102, 204))); // NOI18N

        jComboBox1.setModel(new javax.swing.DefaultComboBoxModel(new String[] { " ", "Voluntariado", "Ley de Servicio Comunitario", "Cátedra" }));
        jComboBox1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jComboBox1ActionPerformed(evt);
            }
        });
        jComboBox1.setBounds(150, 240, 170, 20);
        jLayeredPane6.add(jComboBox1, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel10.setText("Expediente");
        jLabel10.setBounds(20, 40, 80, 14);
        jLayeredPane6.add(jLabel10, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel15.setText("Modalidad");
        jLabel15.setBounds(20, 240, 110, 14);
        jLayeredPane6.add(jLabel15, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel11.setText("Facultad");
        jLabel11.setBounds(20, 80, 80, 14);
        jLayeredPane6.add(jLabel11, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel13.setText("Semestre");
        jLabel13.setBounds(20, 160, 80, 14);
        jLayeredPane6.add(jLabel13, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jComboBox5.setModel(new javax.swing.DefaultComboBoxModel(new String[] { " ", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10" }));
        jComboBox5.setBounds(150, 160, 50, 20);
        jLayeredPane6.add(jComboBox5, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel57.setText("escuela o cátedra");
        jLabel57.setBounds(20, 300, 110, 14);
        jLayeredPane6.add(jLabel57, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jComboBox6.setModel(new javax.swing.DefaultComboBoxModel(new String[] { " ", "1", "2", "3", "4", "5" }));
        jComboBox6.setBounds(150, 200, 50, 20);
        jLayeredPane6.add(jComboBox6, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jTextField6.setBounds(150, 40, 150, 20);
        jLayeredPane6.add(jTextField6, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel14.setText("Año");
        jLabel14.setBounds(20, 200, 40, 14);
        jLayeredPane6.add(jLabel14, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jComboBox2.setModel(new javax.swing.DefaultComboBoxModel(new String[] { " ", "Ciencias Económicas y Sociales", "Derecho", "Humanidades y Educación", "Ingeniería", "Teología" }));
        jComboBox2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jComboBox2ActionPerformed(evt);
            }
        });
        jComboBox2.setBounds(150, 80, 170, 20);
        jLayeredPane6.add(jComboBox2, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel12.setText("Escuela");
        jLabel12.setBounds(20, 120, 90, 14);
        jLayeredPane6.add(jLabel12, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel56.setText("Agrupación,");
        jLabel56.setBounds(20, 280, 70, 14);
        jLayeredPane6.add(jLabel56, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jTextField9.setBounds(150, 320, 170, 20);
        jLayeredPane6.add(jTextField9, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jComboBox7.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jComboBox7ActionPerformed(evt);
            }
        });
        jComboBox7.setBounds(150, 280, 170, 20);
        jLayeredPane6.add(jComboBox7, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jComboBox3.setBounds(150, 120, 170, 20);
        jLayeredPane6.add(jComboBox3, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLayeredPane6.setBounds(430, 20, 340, 380);
        jLayeredPane2.add(jLayeredPane6, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLayeredPane7.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Información básica del estudiante", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 11), new java.awt.Color(0, 102, 204))); // NOI18N
        jTextField4.setBounds(160, 190, 150, 20);
        jLayeredPane7.add(jTextField4, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jTextField3.setBounds(160, 110, 150, 20);
        jLayeredPane7.add(jTextField3, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel36.setText("*");
        jLabel36.setBounds(270, 160, 6, 14);
        jLayeredPane7.add(jLabel36, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel33.setText("*");
        jLabel33.setBounds(320, 40, 6, 14);
        jLayeredPane7.add(jLabel33, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel4.setText("Nombre");
        jLabel4.setBounds(40, 70, 50, 14);
        jLayeredPane7.add(jLabel4, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel47.setText("Foto");
        jLabel47.setBounds(40, 340, 60, 14);
        jLayeredPane7.add(jLabel47, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jTextField1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField1ActionPerformed(evt);
            }
        });
        jTextField1.setBounds(160, 30, 150, 20);
        jLayeredPane7.add(jTextField1, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jDateChooser1.setBounds(160, 150, 95, 20);
        jLayeredPane7.add(jDateChooser1, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel9.setText("Preferencias");
        jLabel9.setBounds(40, 270, 90, 14);
        jLayeredPane7.add(jLabel9, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jButton9.setText("Examinar");
        jButton9.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton9ActionPerformed(evt);
            }
        });
        jButton9.setBounds(300, 340, 80, 23);
        jLayeredPane7.add(jButton9, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel3.setText("Cedula");
        jLabel3.setBounds(40, 30, 40, 20);
        jLayeredPane7.add(jLabel3, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel6.setText("Fecha de nacimiento");
        jLabel6.setBounds(40, 150, 110, 14);
        jLayeredPane7.add(jLabel6, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel5.setText("Apellido");
        jLabel5.setBounds(40, 110, 60, 14);
        jLayeredPane7.add(jLabel5, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel8.setText("Teléfono");
        jLabel8.setBounds(40, 230, 80, 14);
        jLayeredPane7.add(jLabel8, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jTextArea1.setColumns(20);
        jTextArea1.setRows(5);
        jScrollPane1.setViewportView(jTextArea1);

        jScrollPane1.setBounds(160, 270, 200, 50);
        jLayeredPane7.add(jScrollPane1, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel35.setText("*");
        jLabel35.setBounds(320, 120, 6, 14);
        jLayeredPane7.add(jLabel35, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel34.setText("*");
        jLabel34.setBounds(320, 80, 6, 14);
        jLayeredPane7.add(jLabel34, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jTextField5.setBounds(160, 230, 150, 20);
        jLayeredPane7.add(jTextField5, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jTextField2.setBounds(160, 70, 150, 20);
        jLayeredPane7.add(jTextField2, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jTextField18.setBounds(160, 340, 130, 20);
        jLayeredPane7.add(jTextField18, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel7.setText("Email");
        jLabel7.setBounds(40, 190, 90, 14);
        jLayeredPane7.add(jLabel7, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLayeredPane7.setBounds(10, 20, 400, 380);
        jLayeredPane2.add(jLayeredPane7, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jButton3.setText("Agregar Estudiante");
        jButton3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton3ActionPerformed(evt);
            }
        });
        jButton3.setBounds(350, 410, 140, 23);
        jLayeredPane2.add(jButton3, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel32.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jLabel32.setForeground(new java.awt.Color(255, 0, 51));
        jLabel32.setText("Nota: los campos marcados con * son requeridos.");
        jLabel32.setBounds(10, 0, 290, 14);
        jLayeredPane2.add(jLabel32, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jTabbedPane1.addTab("Agregar Estudiante", new javax.swing.ImageIcon(getClass().getResource("/imagenes/user_add.png")), jLayeredPane2); // NOI18N

        jLabel16.setText("Título del proyecto");
        jLabel16.setBounds(40, 100, 100, 14);
        jLayeredPane3.add(jLabel16, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel21.setText("Coordinador de la escuela");
        jLabel21.setBounds(40, 360, 150, 14);
        jLayeredPane3.add(jLabel21, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel41.setText("*");
        jLabel41.setBounds(440, 360, 6, 14);
        jLayeredPane3.add(jLabel41, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jTextField14.setEnabled(false);
        jTextField14.setBounds(200, 60, 40, 20);
        jLayeredPane3.add(jTextField14, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jTextField12.setBounds(200, 320, 220, 20);
        jLayeredPane3.add(jTextField12, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jTextField7.setBounds(200, 100, 220, 20);
        jLayeredPane3.add(jTextField7, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel23.setText("Número de proyecto");
        jLabel23.setBounds(40, 60, 110, 14);
        jLayeredPane3.add(jLabel23, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel18.setText("Centro en que se realiza");
        jLabel18.setBounds(40, 230, 150, 14);
        jLayeredPane3.add(jLabel18, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jTextField8.setBounds(200, 260, 220, 20);
        jLayeredPane3.add(jTextField8, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jButton4.setText("Agregar Proyecto");
        jButton4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton4ActionPerformed(evt);
            }
        });
        jButton4.setBounds(250, 400, 120, 23);
        jLayeredPane3.add(jButton4, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jComboBox8.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "UCAB Proyeccion a la Comninidad", "LM Olaso", "Canaima", "Redes", "Casa de los muchachos", "Los Naranjos", "17 de Diciembre", "La Creacion", "Felipe Fermin Paul", "Escuela Tecnica San Jose Obrero", "San Martin de Porres", "Otro" }));
        jComboBox8.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jComboBox8ActionPerformed(evt);
            }
        });
        jComboBox8.setBounds(200, 230, 220, 20);
        jLayeredPane3.add(jComboBox8, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel20.setText("Coordinador del proyecto");
        jLabel20.setBounds(40, 320, 140, 14);
        jLayeredPane3.add(jLabel20, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jTextArea2.setColumns(20);
        jTextArea2.setRows(5);
        jScrollPane2.setViewportView(jTextArea2);

        jScrollPane2.setBounds(200, 140, 220, 70);
        jLayeredPane3.add(jScrollPane2, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel17.setText("Descripción");
        jLabel17.setBounds(40, 140, 80, 14);
        jLayeredPane3.add(jLabel17, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel39.setText("*");
        jLabel39.setBounds(440, 230, 6, 14);
        jLayeredPane3.add(jLabel39, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jTextField13.setBounds(200, 360, 220, 20);
        jLayeredPane3.add(jTextField13, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel40.setText("*");
        jLabel40.setBounds(440, 320, 6, 14);
        jLayeredPane3.add(jLabel40, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel37.setFont(new java.awt.Font("Tahoma", 1, 11));
        jLabel37.setForeground(new java.awt.Color(255, 0, 51));
        jLabel37.setText("Nota: los campos marcados con * son requeridos.");
        jLabel37.setBounds(40, 20, 300, 14);
        jLayeredPane3.add(jLabel37, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel38.setText("*");
        jLabel38.setBounds(440, 100, 40, 14);
        jLayeredPane3.add(jLabel38, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jTabbedPane1.addTab("Agregar Proyecto", new javax.swing.ImageIcon(getClass().getResource("/imagenes/add_page.png")), jLayeredPane3); // NOI18N

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel22)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 324, Short.MAX_VALUE)
                .addComponent(jLabel49)
                .addGap(34, 34, 34))
            .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(jTabbedPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 800, Short.MAX_VALUE))
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGap(30, 30, 30)
                        .addComponent(jLabel49))
                    .addComponent(jLabel22))
                .addContainerGap(506, Short.MAX_VALUE))
            .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                    .addContainerGap(99, Short.MAX_VALUE)
                    .addComponent(jTabbedPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 501, javax.swing.GroupLayout.PREFERRED_SIZE)))
        );

        jPanel2.setBounds(0, 0, 800, 600);
        jLayeredPane5.add(jPanel2, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jPanel3.setMinimumSize(new java.awt.Dimension(800, 600));
        jPanel3.setPreferredSize(new java.awt.Dimension(800, 600));

        jLabel50.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/home.png"))); // NOI18N
        jLabel50.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jLabel50MouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                jLabel50MouseEntered(evt);
            }
        });

        jLabel48.setBorder(new javax.swing.border.MatteBorder(null));
        jLabel48.setBounds(30, 20, 120, 120);
        jLayeredPane8.add(jLabel48, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLayeredPane11.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Datos", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 11), new java.awt.Color(0, 102, 255))); // NOI18N

        jLabel59.setForeground(new java.awt.Color(0, 102, 255));
        jLabel59.setBounds(10, 144, 260, 20);
        jLayeredPane11.add(jLabel59, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel54.setForeground(new java.awt.Color(0, 102, 255));
        jLabel54.setBounds(10, 84, 260, 20);
        jLayeredPane11.add(jLabel54, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel53.setForeground(new java.awt.Color(0, 102, 255));
        jLabel53.setBounds(10, 50, 260, 20);
        jLayeredPane11.add(jLabel53, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel55.setForeground(new java.awt.Color(0, 102, 255));
        jLabel55.setBounds(10, 114, 260, 20);
        jLayeredPane11.add(jLabel55, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel51.setForeground(new java.awt.Color(0, 102, 255));
        jLabel51.setBounds(10, 20, 260, 20);
        jLayeredPane11.add(jLabel51, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel60.setForeground(new java.awt.Color(0, 102, 255));
        jLabel60.setBounds(10, 174, 260, 20);
        jLayeredPane11.add(jLabel60, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLayeredPane11.setBounds(210, 0, 280, 210);
        jLayeredPane8.add(jLayeredPane11, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Lista de Estudiantes", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 11), new java.awt.Color(0, 102, 255))); // NOI18N

        jTable1.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        jTable1.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        jTable1.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jTable1MouseClicked(evt);
            }
        });
        jScrollPane3.setViewportView(jTable1);

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 258, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 372, Short.MAX_VALUE)
                .addContainerGap())
        );

        jPanel4.setBounds(500, 0, 290, 410);
        jLayeredPane8.add(jPanel4, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLayeredPane12.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Información en caso de que sea estudiante de la UCAB", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 11), new java.awt.Color(0, 102, 255))); // NOI18N

        jLabel63.setForeground(new java.awt.Color(0, 102, 255));
        jLabel63.setBounds(10, 160, 260, 20);
        jLayeredPane12.add(jLabel63, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel68.setForeground(new java.awt.Color(0, 102, 255));
        jLabel68.setBounds(10, 130, 260, 20);
        jLayeredPane12.add(jLabel68, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel67.setForeground(new java.awt.Color(0, 102, 255));
        jLabel67.setBounds(10, 100, 260, 20);
        jLayeredPane12.add(jLabel67, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel64.setForeground(new java.awt.Color(0, 102, 255));
        jLabel64.setBounds(10, 24, 260, 20);
        jLayeredPane12.add(jLabel64, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel66.setForeground(new java.awt.Color(0, 102, 255));
        jLabel66.setBounds(10, 70, 260, 20);
        jLayeredPane12.add(jLabel66, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel65.setForeground(new java.awt.Color(0, 102, 255));
        jLabel65.setBounds(10, 50, 260, 20);
        jLayeredPane12.add(jLabel65, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel58.setForeground(new java.awt.Color(0, 102, 255));
        jLabel58.setBounds(10, 194, 260, 20);
        jLayeredPane12.add(jLabel58, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLayeredPane12.setBounds(210, 210, 280, 230);
        jLayeredPane8.add(jLayeredPane12, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLayeredPane13.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Otros datos:", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 11), new java.awt.Color(0, 102, 255))); // NOI18N

        jLabel70.setForeground(new java.awt.Color(0, 102, 255));
        jLabel70.setText("Especialidades:");
        jLabel70.setBounds(10, 30, 90, 14);
        jLayeredPane13.add(jLabel70, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel69.setForeground(new java.awt.Color(0, 102, 255));
        jLabel69.setText("Interés por unirse:");
        jLabel69.setBounds(10, 180, 100, 14);
        jLayeredPane13.add(jLabel69, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jLabel77.setBounds(10, 200, 170, 20);
        jLayeredPane13.add(jLabel77, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jTextArea3.setColumns(20);
        jTextArea3.setEditable(false);
        jTextArea3.setRows(5);
        jTextArea3.setEnabled(false);
        jScrollPane4.setViewportView(jTextArea3);

        jScrollPane4.setBounds(10, 50, 170, 110);
        jLayeredPane13.add(jScrollPane4, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLayeredPane13.setBounds(10, 180, 190, 260);
        jLayeredPane8.add(jLayeredPane13, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jButton13.setText("Asignar Proyecto");
        jButton13.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton13ActionPerformed(evt);
            }
        });
        jButton13.setBounds(540, 420, 120, 23);
        jLayeredPane8.add(jButton13, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jButton5.setText("Modificar");
        jButton5.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton5ActionPerformed(evt);
            }
        });
        jButton5.setBounds(670, 420, 80, 23);
        jLayeredPane8.add(jButton5, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jTabbedPane2.addTab("Ver estudiante", new javax.swing.ImageIcon(getClass().getResource("/imagenes/user.png")), jLayeredPane8); // NOI18N

        jTable2.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        jTable2.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jTable2MouseClicked(evt);
            }
        });
        jScrollPane5.setViewportView(jTable2);

        jScrollPane5.setBounds(0, 0, 790, 300);
        jLayeredPane9.add(jScrollPane5, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLayeredPane14.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Descripción del proyecto", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 11), new java.awt.Color(0, 102, 255))); // NOI18N

        jTextArea4.setColumns(20);
        jTextArea4.setEditable(false);
        jTextArea4.setRows(5);
        jScrollPane6.setViewportView(jTextArea4);

        jScrollPane6.setBounds(10, 20, 750, 60);
        jLayeredPane14.add(jScrollPane6, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLayeredPane14.setBounds(10, 310, 770, 100);
        jLayeredPane9.add(jLayeredPane14, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jButton16.setText("Modificar");
        jButton16.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton16ActionPerformed(evt);
            }
        });
        jButton16.setBounds(370, 420, 75, 23);
        jLayeredPane9.add(jButton16, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jTabbedPane2.addTab("Ver proyectos", new javax.swing.ImageIcon(getClass().getResource("/imagenes/full_page.png")), jLayeredPane9); // NOI18N

        jTable3.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        jTable3.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jTable3MouseClicked(evt);
            }
        });
        jScrollPane7.setViewportView(jTable3);

        jScrollPane7.setBounds(0, 0, 790, 260);
        jLayeredPane10.add(jScrollPane7, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLayeredPane20.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Datos del proyecto", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 11), new java.awt.Color(0, 102, 255))); // NOI18N

        jTextArea5.setColumns(20);
        jTextArea5.setEditable(false);
        jTextArea5.setRows(5);
        jScrollPane12.setViewportView(jTextArea5);

        jScrollPane12.setBounds(10, 80, 750, 50);
        jLayeredPane20.add(jScrollPane12, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel27.setForeground(new java.awt.Color(51, 102, 255));
        jLabel27.setBounds(10, 30, 590, 20);
        jLayeredPane20.add(jLabel27, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel25.setForeground(new java.awt.Color(51, 102, 255));
        jLabel25.setText("Descripción:");
        jLabel25.setBounds(10, 60, 70, -1);
        jLayeredPane20.add(jLabel25, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLayeredPane20.setBounds(10, 270, 770, 140);
        jLayeredPane10.add(jLayeredPane20, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jButton21.setText("Modificar");
        jButton21.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton21ActionPerformed(evt);
            }
        });
        jButton21.setBounds(370, 420, 75, 23);
        jLayeredPane10.add(jButton21, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jTabbedPane2.addTab("Ver asignaciones", new javax.swing.ImageIcon(getClass().getResource("/imagenes/vcard.png")), jLayeredPane10); // NOI18N

        jLabel52.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/logo_proyeccion_a_la_comunidad(transparente).png"))); // NOI18N

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel52)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 329, Short.MAX_VALUE)
                .addComponent(jLabel50)
                .addGap(29, 29, 29))
            .addComponent(jTabbedPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 800, Short.MAX_VALUE)
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addGap(26, 26, 26)
                        .addComponent(jLabel50))
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabel52)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jTabbedPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 484, Short.MAX_VALUE))
        );

        jTabbedPane2.getAccessibleContext().setAccessibleName("Ver estudiante");

        jPanel3.setBounds(0, 0, 800, 600);
        jLayeredPane5.add(jPanel3, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jPanel5.setPreferredSize(new java.awt.Dimension(800, 600));

        jLabel61.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/logo_proyeccion_a_la_comunidad(transparente).png"))); // NOI18N

        jLabel62.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/home.png"))); // NOI18N
        jLabel62.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jLabel62MouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                jLabel62MouseEntered(evt);
            }
        });

        jTabbedPane3.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Eliminar datos del sistema", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 14), new java.awt.Color(51, 102, 255))); // NOI18N

        jTable4.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        jScrollPane8.setViewportView(jTable4);

        jScrollPane8.setBounds(0, 0, 790, 400);
        jLayeredPane16.add(jScrollPane8, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jTabbedPane3.addTab("Eliminar estudiantes", new javax.swing.ImageIcon(getClass().getResource("/imagenes/user_remove.png")), jLayeredPane16); // NOI18N

        jTable5.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        jScrollPane9.setViewportView(jTable5);

        jScrollPane9.setBounds(0, 0, 790, 400);
        jLayeredPane17.add(jScrollPane9, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jTabbedPane3.addTab("Eliminar proyectos", new javax.swing.ImageIcon(getClass().getResource("/imagenes/delete_page.png")), jLayeredPane17); // NOI18N

        jTable6.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        jScrollPane10.setViewportView(jTable6);

        jScrollPane10.setBounds(0, 0, 790, 400);
        jLayeredPane18.add(jScrollPane10, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jTabbedPane3.addTab("Eliminar asignaciones", new javax.swing.ImageIcon(getClass().getResource("/imagenes/vcard_delete.png")), jLayeredPane18); // NOI18N

        jButton12.setText("Eliminar");
        jButton12.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton12ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
        jPanel5.setLayout(jPanel5Layout);
        jPanel5Layout.setHorizontalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel61)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 330, Short.MAX_VALUE)
                .addComponent(jLabel62)
                .addGap(28, 28, 28))
            .addComponent(jTabbedPane3, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 800, Short.MAX_VALUE)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addGap(361, 361, 361)
                .addComponent(jButton12)
                .addContainerGap(370, Short.MAX_VALUE))
        );
        jPanel5Layout.setVerticalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabel61))
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addGap(27, 27, 27)
                        .addComponent(jLabel62)))
                .addGap(18, 18, 18)
                .addComponent(jTabbedPane3, javax.swing.GroupLayout.PREFERRED_SIZE, 436, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jButton12)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanel5.setBounds(0, 0, 800, 600);
        jLayeredPane5.add(jPanel5, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jPanel6.setPreferredSize(new java.awt.Dimension(800, 600));

        jLabel71.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/logo_proyeccion_a_la_comunidad(transparente).png"))); // NOI18N

        jLabel72.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/home.png"))); // NOI18N
        jLabel72.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jLabel72MouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                jLabel72MouseEntered(evt);
            }
        });

        jLabel19.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/back.png"))); // NOI18N
        jLabel19.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jLabel19MouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                jLabel19MouseEntered(evt);
            }
        });

        jLayeredPane4.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Datos de la asignación", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 11), new java.awt.Color(0, 102, 255))); // NOI18N

        jTextField15.setEnabled(false);
        jTextField15.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField15ActionPerformed(evt);
            }
        });
        jTextField15.setBounds(230, 80, 60, 20);
        jLayeredPane4.add(jTextField15, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jTextField17.setBounds(230, 280, 30, 20);
        jLayeredPane4.add(jTextField17, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel42.setFont(new java.awt.Font("Tahoma", 1, 11));
        jLabel42.setForeground(new java.awt.Color(255, 0, 51));
        jLabel42.setText("Nota: los campos marcados con * son requeridos.");
        jLabel42.setBounds(30, 30, 310, 14);
        jLayeredPane4.add(jLabel42, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel30.setText("Fecha de culminación del servicio");
        jLabel30.setBounds(30, 240, 190, 14);
        jLayeredPane4.add(jLabel30, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel28.setText("Fecha de llenado de la planilla");
        jLabel28.setBounds(30, 160, 160, 14);
        jLayeredPane4.add(jLabel28, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel31.setText("Número de horas que debe cumprir");
        jLabel31.setBounds(30, 280, 190, 14);
        jLayeredPane4.add(jLabel31, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jDateChooser4.setBounds(230, 240, 95, 20);
        jLayeredPane4.add(jDateChooser4, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jDateChooser2.setBounds(230, 160, 95, 20);
        jLayeredPane4.add(jDateChooser2, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel26.setText("Número de proyecto");
        jLabel26.setBounds(30, 120, 120, 14);
        jLayeredPane4.add(jLabel26, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel24.setText("Cédula del estudiante");
        jLabel24.setBounds(30, 80, 130, 14);
        jLayeredPane4.add(jLabel24, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jButton7.setText("Asignar Proyecto");
        jButton7.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton7ActionPerformed(evt);
            }
        });
        jButton7.setBounds(130, 340, 120, 23);
        jLayeredPane4.add(jButton7, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel29.setText("Fecha en que iniciará el servicio");
        jLabel29.setBounds(30, 200, 190, 14);
        jLayeredPane4.add(jLabel29, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jTextField16.setEnabled(false);
        jTextField16.setBounds(230, 120, 30, 20);
        jLayeredPane4.add(jTextField16, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jDateChooser3.setBounds(230, 200, 95, 20);
        jLayeredPane4.add(jDateChooser3, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel45.setText("*");
        jLabel45.setBounds(340, 200, 30, 14);
        jLayeredPane4.add(jLabel45, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel46.setText("*");
        jLabel46.setBounds(280, 280, 40, 14);
        jLayeredPane4.add(jLabel46, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLayeredPane19.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Lista de proyectos", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 11), new java.awt.Color(0, 102, 255))); // NOI18N

        jTable7.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        jTable7.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jTable7MouseClicked(evt);
            }
        });
        jScrollPane11.setViewportView(jTable7);

        jScrollPane11.setBounds(10, 20, 380, 420);
        jLayeredPane19.add(jScrollPane11, javax.swing.JLayeredPane.DEFAULT_LAYER);

        javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
        jPanel6.setLayout(jPanel6Layout);
        jPanel6Layout.setHorizontalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel6Layout.createSequentialGroup()
                        .addComponent(jLabel71)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 266, Short.MAX_VALUE)
                        .addComponent(jLabel19)
                        .addGap(29, 29, 29)
                        .addComponent(jLabel72)
                        .addGap(31, 31, 31))
                    .addGroup(jPanel6Layout.createSequentialGroup()
                        .addComponent(jLayeredPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 366, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jLayeredPane19, javax.swing.GroupLayout.DEFAULT_SIZE, 396, Short.MAX_VALUE)
                        .addContainerGap())))
        );
        jPanel6Layout.setVerticalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createSequentialGroup()
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel6Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabel71))
                    .addGroup(jPanel6Layout.createSequentialGroup()
                        .addGap(29, 29, 29)
                        .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel19)
                            .addComponent(jLabel72))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 35, Short.MAX_VALUE)
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(jLayeredPane19)
                    .addComponent(jLayeredPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 449, Short.MAX_VALUE))
                .addContainerGap())
        );

        jPanel6.setBounds(0, 0, 800, 600);
        jLayeredPane5.add(jPanel6, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jPanel7.setMinimumSize(new java.awt.Dimension(800, 600));

        jLabel73.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/logo_proyeccion_a_la_comunidad(transparente).png"))); // NOI18N

        jLabel43.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/back.png"))); // NOI18N
        jLabel43.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jLabel43MouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                jLabel43MouseEntered(evt);
            }
        });

        jLabel74.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/home.png"))); // NOI18N
        jLabel74.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jLabel74MouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                jLabel74MouseEntered(evt);
            }
        });

        jLayeredPane23.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Modificar información del estudiante", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 14), new java.awt.Color(51, 102, 255))); // NOI18N

        jLayeredPane21.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Información básica del estudiante", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 11), new java.awt.Color(0, 102, 204))); // NOI18N
        jTextField23.setBounds(160, 190, 150, 20);
        jLayeredPane21.add(jTextField23, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel81.setText("Email");
        jLabel81.setBounds(40, 190, 90, 14);
        jLayeredPane21.add(jLabel81, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jTextField22.setBounds(160, 70, 150, 20);
        jLayeredPane21.add(jTextField22, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel79.setText("Fecha de nacimiento");
        jLabel79.setBounds(40, 150, 110, 14);
        jLayeredPane21.add(jLabel79, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jTextField26.setEnabled(false);
        jTextField26.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField26ActionPerformed(evt);
            }
        });
        jTextField26.setBounds(160, 30, 150, 20);
        jLayeredPane21.add(jTextField26, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jTextArea6.setColumns(20);
        jTextArea6.setRows(5);
        jScrollPane13.setViewportView(jTextArea6);

        jScrollPane13.setBounds(160, 270, 200, 50);
        jLayeredPane21.add(jScrollPane13, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel76.setText("Teléfono");
        jLabel76.setBounds(40, 230, 80, 14);
        jLayeredPane21.add(jLabel76, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jTextField11.setBounds(160, 110, 150, 20);
        jLayeredPane21.add(jTextField11, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel44.setText("Interés por unirse");
        jLabel44.setBounds(40, 380, 100, 14);
        jLayeredPane21.add(jLabel44, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel78.setText("Preferencias");
        jLabel78.setBounds(40, 270, 90, 14);
        jLayeredPane21.add(jLabel78, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jDateChooser5.setBounds(160, 150, 95, 20);
        jLayeredPane21.add(jDateChooser5, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel86.setText("Cedula");
        jLabel86.setBounds(40, 30, 40, 20);
        jLayeredPane21.add(jLabel86, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel75.setText("Apellido");
        jLabel75.setBounds(40, 110, 60, 14);
        jLayeredPane21.add(jLabel75, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel84.setText("Foto");
        jLabel84.setBounds(40, 340, 60, 14);
        jLayeredPane21.add(jLabel84, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jComboBox15.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Por responder", "Si", "No" }));
        jComboBox15.setBounds(160, 380, 110, 20);
        jLayeredPane21.add(jComboBox15, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jButton14.setText("Examinar");
        jButton14.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton14ActionPerformed(evt);
            }
        });
        jButton14.setBounds(300, 340, 80, 23);
        jLayeredPane21.add(jButton14, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel85.setText("Nombre");
        jLabel85.setBounds(40, 70, 50, 14);
        jLayeredPane21.add(jLabel85, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jTextField21.setBounds(160, 230, 150, 20);
        jLayeredPane21.add(jTextField21, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jTextField20.setBounds(160, 340, 130, 20);
        jLayeredPane21.add(jTextField20, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLayeredPane21.setBounds(10, 30, 400, 410);
        jLayeredPane23.add(jLayeredPane21, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLayeredPane22.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Información en caso de que el estudiante sea alumno de la UCAB", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 11), new java.awt.Color(0, 102, 204))); // NOI18N

        jLabel92.setText("Agrupación,");
        jLabel92.setBounds(20, 280, 70, 14);
        jLayeredPane22.add(jLabel92, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel91.setText("Expediente");
        jLabel91.setBounds(20, 40, 80, 14);
        jLayeredPane22.add(jLabel91, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel94.setText("Escuela");
        jLabel94.setBounds(20, 120, 90, 14);
        jLayeredPane22.add(jLabel94, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel87.setText("Año");
        jLabel87.setBounds(20, 200, 40, 14);
        jLayeredPane22.add(jLabel87, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jComboBox12.setModel(new javax.swing.DefaultComboBoxModel(new String[] { " ", "1", "2", "3", "4", "5" }));
        jComboBox12.setBounds(150, 200, 50, 20);
        jLayeredPane22.add(jComboBox12, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel93.setText("Modalidad");
        jLabel93.setBounds(20, 240, 110, 14);
        jLayeredPane22.add(jLabel93, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jComboBox11.setModel(new javax.swing.DefaultComboBoxModel(new String[] { " ", "1", "2", "3", "4", "5", "6", "7", "8", "9", "10" }));
        jComboBox11.setBounds(150, 160, 50, 20);
        jLayeredPane22.add(jComboBox11, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel90.setText("Semestre");
        jLabel90.setBounds(20, 160, 80, 14);
        jLayeredPane22.add(jLabel90, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel88.setText("escuela o cátedra");
        jLabel88.setBounds(20, 300, 110, 14);
        jLayeredPane22.add(jLabel88, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jComboBox14.setBounds(150, 120, 170, 20);
        jLayeredPane22.add(jComboBox14, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jComboBox10.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jComboBox10ActionPerformed(evt);
            }
        });
        jComboBox10.setBounds(150, 280, 170, 20);
        jLayeredPane22.add(jComboBox10, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel89.setText("Facultad");
        jLabel89.setBounds(20, 80, 80, 14);
        jLayeredPane22.add(jLabel89, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jComboBox9.setModel(new javax.swing.DefaultComboBoxModel(new String[] { " ", "Ciencias Económicas y Sociales", "Derecho", "Humanidades y Educación", "Ingeniería", "Teología" }));
        jComboBox9.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jComboBox9ActionPerformed(evt);
            }
        });
        jComboBox9.setBounds(150, 80, 170, 20);
        jLayeredPane22.add(jComboBox9, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jTextField24.setBounds(150, 40, 150, 20);
        jLayeredPane22.add(jTextField24, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jTextField25.setBounds(150, 320, 170, 20);
        jLayeredPane22.add(jTextField25, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jComboBox13.setModel(new javax.swing.DefaultComboBoxModel(new String[] { " ", "Voluntariado", "Ley de Servicio Comunitario", "Cátedra" }));
        jComboBox13.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jComboBox13ActionPerformed(evt);
            }
        });
        jComboBox13.setBounds(150, 240, 170, 20);
        jLayeredPane22.add(jComboBox13, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLayeredPane22.setBounds(430, 30, 360, 410);
        jLayeredPane23.add(jLayeredPane22, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jButton6.setText("Guardar Cambios");
        jButton6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton6ActionPerformed(evt);
            }
        });
        jButton6.setBounds(310, 450, 115, 23);
        jLayeredPane23.add(jButton6, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jButton15.setText("Cancelar");
        jButton15.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton15ActionPerformed(evt);
            }
        });
        jButton15.setBounds(440, 450, 79, 23);
        jLayeredPane23.add(jButton15, javax.swing.JLayeredPane.DEFAULT_LAYER);

        javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);
        jPanel7.setLayout(jPanel7Layout);
        jPanel7Layout.setHorizontalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel7Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel73)
                .addGap(272, 272, 272)
                .addComponent(jLabel43)
                .addGap(28, 28, 28)
                .addComponent(jLabel74)
                .addGap(26, 26, 26))
            .addComponent(jLayeredPane23, javax.swing.GroupLayout.DEFAULT_SIZE, 800, Short.MAX_VALUE)
        );
        jPanel7Layout.setVerticalGroup(
            jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel7Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel73)
                    .addGroup(jPanel7Layout.createSequentialGroup()
                        .addGap(18, 18, 18)
                        .addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel43)
                            .addComponent(jLabel74))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jLayeredPane23, javax.swing.GroupLayout.DEFAULT_SIZE, 484, Short.MAX_VALUE))
        );

        jPanel7.setBounds(0, 0, 800, 600);
        jLayeredPane5.add(jPanel7, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jPanel8.setMinimumSize(new java.awt.Dimension(800, 600));

        jLabel80.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/logo_proyeccion_a_la_comunidad(transparente).png"))); // NOI18N

        jLabel82.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/back.png"))); // NOI18N
        jLabel82.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jLabel82MouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                jLabel82MouseEntered(evt);
            }
        });

        jLabel83.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/home.png"))); // NOI18N
        jLabel83.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jLabel83MouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                jLabel83MouseEntered(evt);
            }
        });

        jLayeredPane24.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Modificar Información del Proyecto", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 14), new java.awt.Color(51, 102, 255))); // NOI18N

        jLabel99.setText("Coordinador del proyecto");
        jLabel99.setBounds(40, 290, 140, 14);
        jLayeredPane24.add(jLabel99, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jTextField28.setBounds(200, 250, 220, 20);
        jLayeredPane24.add(jTextField28, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel97.setText("Descripción");
        jLabel97.setBounds(40, 130, 80, 14);
        jLayeredPane24.add(jLabel97, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jTextArea7.setColumns(20);
        jTextArea7.setRows(5);
        jScrollPane14.setViewportView(jTextArea7);

        jScrollPane14.setBounds(200, 130, 220, 70);
        jLayeredPane24.add(jScrollPane14, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jTextField29.setBounds(200, 290, 220, 20);
        jLayeredPane24.add(jTextField29, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jTextField27.setEnabled(false);
        jTextField27.setBounds(200, 50, 40, 20);
        jLayeredPane24.add(jTextField27, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jComboBox16.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "UCAB Proyeccion a la Comninidad", "LM Olaso", "Canaima", "Redes", "Casa de los muchachos", "Los Naranjos", "17 de Diciembre", "La Creacion", "Felipe Fermin Paul", "Escuela Tecnica San Jose Obrero", "San Martin de Porres", "Otro" }));
        jComboBox16.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jComboBox16ActionPerformed(evt);
            }
        });
        jComboBox16.setBounds(200, 220, 220, 20);
        jLayeredPane24.add(jComboBox16, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel95.setText("Número de proyecto");
        jLabel95.setBounds(40, 50, 110, 14);
        jLayeredPane24.add(jLabel95, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel98.setText("Centro en que se realiza");
        jLabel98.setBounds(40, 220, 150, 14);
        jLayeredPane24.add(jLabel98, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jTextField10.setBounds(200, 90, 220, 20);
        jLayeredPane24.add(jTextField10, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel100.setText("Coordinador de la escuela");
        jLabel100.setBounds(40, 330, 150, 14);
        jLayeredPane24.add(jLabel100, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jTextField30.setBounds(200, 330, 220, 20);
        jLayeredPane24.add(jTextField30, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jButton18.setText("Guardar Cambios");
        jButton18.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton18ActionPerformed(evt);
            }
        });
        jButton18.setBounds(300, 410, 120, 23);
        jLayeredPane24.add(jButton18, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jButton19.setText("Cancelar");
        jButton19.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton19ActionPerformed(evt);
            }
        });
        jButton19.setBounds(430, 410, 75, 23);
        jLayeredPane24.add(jButton19, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel96.setText("Título del proyecto");
        jLabel96.setBounds(40, 90, 100, 14);
        jLayeredPane24.add(jLabel96, javax.swing.JLayeredPane.DEFAULT_LAYER);

        javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);
        jPanel8.setLayout(jPanel8Layout);
        jPanel8Layout.setHorizontalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel8Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel80)
                .addGap(272, 272, 272)
                .addComponent(jLabel82)
                .addGap(28, 28, 28)
                .addComponent(jLabel83)
                .addContainerGap(26, Short.MAX_VALUE))
            .addComponent(jLayeredPane24, javax.swing.GroupLayout.DEFAULT_SIZE, 800, Short.MAX_VALUE)
        );
        jPanel8Layout.setVerticalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel8Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel80)
                    .addGroup(jPanel8Layout.createSequentialGroup()
                        .addGap(18, 18, 18)
                        .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel82)
                            .addComponent(jLabel83))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 39, Short.MAX_VALUE)
                .addComponent(jLayeredPane24, javax.swing.GroupLayout.PREFERRED_SIZE, 456, javax.swing.GroupLayout.PREFERRED_SIZE))
        );

        jPanel8.setBounds(0, 0, 800, 600);
        jLayeredPane5.add(jPanel8, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jPanel9.setMinimumSize(new java.awt.Dimension(800, 600));

        jLabel101.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/back.png"))); // NOI18N
        jLabel101.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jLabel101MouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                jLabel101MouseEntered(evt);
            }
        });

        jLabel102.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/home.png"))); // NOI18N
        jLabel102.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jLabel102MouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                jLabel102MouseEntered(evt);
            }
        });

        jLabel103.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/logo_proyeccion_a_la_comunidad(transparente).png"))); // NOI18N

        jLayeredPane25.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Modificar Información del Servicio Asignado", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 14), new java.awt.Color(51, 102, 255))); // NOI18N

        jTextField31.setEnabled(false);
        jTextField31.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTextField31ActionPerformed(evt);
            }
        });
        jTextField31.setBounds(270, 50, 60, 20);
        jLayeredPane25.add(jTextField31, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jDateChooser6.setBounds(270, 130, 110, 20);
        jLayeredPane25.add(jDateChooser6, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel108.setText("Fecha de culminación del servicio");
        jLabel108.setBounds(70, 210, 190, 14);
        jLayeredPane25.add(jLabel108, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jDateChooser8.setBounds(270, 210, 110, 20);
        jLayeredPane25.add(jDateChooser8, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel105.setText("Número de proyecto");
        jLabel105.setBounds(70, 90, 120, 14);
        jLayeredPane25.add(jLabel105, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel106.setText("Fecha de llenado de la planilla");
        jLabel106.setBounds(70, 130, 160, 14);
        jLayeredPane25.add(jLabel106, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jDateChooser7.setBounds(270, 170, 110, 20);
        jLayeredPane25.add(jDateChooser7, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel110.setText("Total de horas cumplidas");
        jLabel110.setBounds(70, 290, 130, 14);
        jLayeredPane25.add(jLabel110, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jTextField33.setBounds(270, 250, 30, 20);
        jLayeredPane25.add(jTextField33, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel109.setText("Número de horas que debe cumprir");
        jLabel109.setBounds(70, 250, 190, 14);
        jLayeredPane25.add(jLabel109, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel107.setText("Fecha en que iniciará el servicio");
        jLabel107.setBounds(70, 170, 190, 14);
        jLayeredPane25.add(jLabel107, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel104.setText("Cédula del estudiante");
        jLabel104.setBounds(70, 50, 130, 14);
        jLayeredPane25.add(jLabel104, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jButton17.setText("Guardar Cambios");
        jButton17.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton17ActionPerformed(evt);
            }
        });
        jButton17.setBounds(310, 350, 115, 23);
        jLayeredPane25.add(jButton17, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jTextField34.setBounds(270, 290, 30, 20);
        jLayeredPane25.add(jTextField34, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jButton20.setText("Cancelar");
        jButton20.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton20ActionPerformed(evt);
            }
        });
        jButton20.setBounds(440, 350, 75, 23);
        jLayeredPane25.add(jButton20, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jTextField32.setEnabled(false);
        jTextField32.setBounds(270, 90, 30, 20);
        jLayeredPane25.add(jTextField32, javax.swing.JLayeredPane.DEFAULT_LAYER);

        javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);
        jPanel9.setLayout(jPanel9Layout);
        jPanel9Layout.setHorizontalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel9Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel103)
                .addGap(272, 272, 272)
                .addComponent(jLabel101)
                .addGap(28, 28, 28)
                .addComponent(jLabel102)
                .addContainerGap(26, Short.MAX_VALUE))
            .addComponent(jLayeredPane25, javax.swing.GroupLayout.DEFAULT_SIZE, 800, Short.MAX_VALUE)
        );
        jPanel9Layout.setVerticalGroup(
            jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel9Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel103)
                    .addGroup(jPanel9Layout.createSequentialGroup()
                        .addGap(18, 18, 18)
                        .addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel101)
                            .addComponent(jLabel102))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 86, Short.MAX_VALUE)
                .addComponent(jLayeredPane25, javax.swing.GroupLayout.PREFERRED_SIZE, 409, javax.swing.GroupLayout.PREFERRED_SIZE))
        );

        jPanel9.setBounds(0, 0, 800, 600);
        jLayeredPane5.add(jPanel9, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jPanel10.setMinimumSize(new java.awt.Dimension(800, 600));

        jLabel111.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/home.png"))); // NOI18N
        jLabel111.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jLabel111MouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                jLabel111MouseEntered(evt);
            }
        });

        jTabbedPane4.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Resultados de la Búsqueda", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 14), new java.awt.Color(51, 102, 255))); // NOI18N

        jLabel113.setBorder(new javax.swing.border.MatteBorder(null));
        jLabel113.setBounds(30, 20, 120, 120);
        jLayeredPane26.add(jLabel113, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLayeredPane27.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Datos", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 11), new java.awt.Color(0, 102, 255))); // NOI18N

        jLabel114.setForeground(new java.awt.Color(0, 102, 255));
        jLabel114.setBounds(10, 144, 260, 20);
        jLayeredPane27.add(jLabel114, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel115.setForeground(new java.awt.Color(0, 102, 255));
        jLabel115.setBounds(10, 84, 260, 20);
        jLayeredPane27.add(jLabel115, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel116.setForeground(new java.awt.Color(0, 102, 255));
        jLabel116.setBounds(10, 50, 260, 20);
        jLayeredPane27.add(jLabel116, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel117.setForeground(new java.awt.Color(0, 102, 255));
        jLabel117.setBounds(10, 114, 260, 20);
        jLayeredPane27.add(jLabel117, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel118.setForeground(new java.awt.Color(0, 102, 255));
        jLabel118.setBounds(10, 20, 260, 20);
        jLayeredPane27.add(jLabel118, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel119.setForeground(new java.awt.Color(0, 102, 255));
        jLabel119.setBounds(10, 174, 260, 20);
        jLayeredPane27.add(jLabel119, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLayeredPane27.setBounds(210, 0, 280, 210);
        jLayeredPane26.add(jLayeredPane27, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jPanel11.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Lista de Estudiantes", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 11), new java.awt.Color(0, 102, 255))); // NOI18N

        jTable8.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        jTable8.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        jTable8.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jTable8MouseClicked(evt);
            }
        });
        jScrollPane15.setViewportView(jTable8);

        javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11);
        jPanel11.setLayout(jPanel11Layout);
        jPanel11Layout.setHorizontalGroup(
            jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel11Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane15, javax.swing.GroupLayout.DEFAULT_SIZE, 258, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel11Layout.setVerticalGroup(
            jPanel11Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel11Layout.createSequentialGroup()
                .addComponent(jScrollPane15, javax.swing.GroupLayout.DEFAULT_SIZE, 372, Short.MAX_VALUE)
                .addContainerGap())
        );

        jPanel11.setBounds(500, 0, 290, 410);
        jLayeredPane26.add(jPanel11, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLayeredPane28.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Información en caso de que sea estudiante de la UCAB", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 11), new java.awt.Color(0, 102, 255))); // NOI18N

        jLabel120.setForeground(new java.awt.Color(0, 102, 255));
        jLabel120.setBounds(10, 160, 260, 20);
        jLayeredPane28.add(jLabel120, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel121.setForeground(new java.awt.Color(0, 102, 255));
        jLabel121.setBounds(10, 130, 260, 20);
        jLayeredPane28.add(jLabel121, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel122.setForeground(new java.awt.Color(0, 102, 255));
        jLabel122.setBounds(10, 100, 260, 20);
        jLayeredPane28.add(jLabel122, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel123.setForeground(new java.awt.Color(0, 102, 255));
        jLabel123.setBounds(10, 24, 260, 20);
        jLayeredPane28.add(jLabel123, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel124.setForeground(new java.awt.Color(0, 102, 255));
        jLabel124.setBounds(10, 70, 260, 20);
        jLayeredPane28.add(jLabel124, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel125.setForeground(new java.awt.Color(0, 102, 255));
        jLabel125.setBounds(10, 50, 260, 20);
        jLayeredPane28.add(jLabel125, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel126.setForeground(new java.awt.Color(0, 102, 255));
        jLabel126.setBounds(10, 194, 260, 20);
        jLayeredPane28.add(jLabel126, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLayeredPane28.setBounds(210, 210, 280, 230);
        jLayeredPane26.add(jLayeredPane28, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLayeredPane29.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Otros datos:", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 11), new java.awt.Color(0, 102, 255))); // NOI18N

        jTextArea8.setColumns(20);
        jTextArea8.setEditable(false);
        jTextArea8.setRows(5);
        jScrollPane16.setViewportView(jTextArea8);

        jScrollPane16.setBounds(10, 50, 170, 110);
        jLayeredPane29.add(jScrollPane16, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel129.setForeground(new java.awt.Color(0, 102, 255));
        jLabel129.setText("Especialidades:");
        jLabel129.setBounds(10, 30, 90, 14);
        jLayeredPane29.add(jLabel129, javax.swing.JLayeredPane.DEFAULT_LAYER);
        jLabel127.setBounds(10, 200, 170, 20);
        jLayeredPane29.add(jLabel127, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel128.setForeground(new java.awt.Color(0, 102, 255));
        jLabel128.setText("Interés por unirse:");
        jLabel128.setBounds(10, 180, 100, 14);
        jLayeredPane29.add(jLabel128, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLayeredPane29.setBounds(10, 180, 190, 260);
        jLayeredPane26.add(jLayeredPane29, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jButton22.setText("Asignar Proyecto");
        jButton22.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton22ActionPerformed(evt);
            }
        });
        jButton22.setBounds(540, 420, 120, 23);
        jLayeredPane26.add(jButton22, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jButton23.setText("Modificar");
        jButton23.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton23ActionPerformed(evt);
            }
        });
        jButton23.setBounds(670, 420, 80, 23);
        jLayeredPane26.add(jButton23, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jTabbedPane4.addTab("Ver estudiante", new javax.swing.ImageIcon(getClass().getResource("/imagenes/user.png")), jLayeredPane26); // NOI18N

        jTable9.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        jTable9.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jTable9MouseClicked(evt);
            }
        });
        jScrollPane17.setViewportView(jTable9);

        jScrollPane17.setBounds(0, 0, 790, 300);
        jLayeredPane30.add(jScrollPane17, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLayeredPane31.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Descripción del proyecto", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 11), new java.awt.Color(0, 102, 255))); // NOI18N

        jTextArea9.setColumns(20);
        jTextArea9.setEditable(false);
        jTextArea9.setRows(5);
        jScrollPane18.setViewportView(jTextArea9);

        jScrollPane18.setBounds(10, 20, 750, 60);
        jLayeredPane31.add(jScrollPane18, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLayeredPane31.setBounds(10, 310, 770, 100);
        jLayeredPane30.add(jLayeredPane31, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jButton24.setText("Modificar");
        jButton24.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton24ActionPerformed(evt);
            }
        });
        jButton24.setBounds(370, 420, 75, 23);
        jLayeredPane30.add(jButton24, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jTabbedPane4.addTab("Ver proyectos", new javax.swing.ImageIcon(getClass().getResource("/imagenes/full_page.png")), jLayeredPane30); // NOI18N

        jTable10.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        jTable10.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jTable10MouseClicked(evt);
            }
        });
        jScrollPane19.setViewportView(jTable10);

        jScrollPane19.setBounds(0, 0, 790, 260);
        jLayeredPane32.add(jScrollPane19, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLayeredPane33.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Datos del proyecto", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 11), new java.awt.Color(0, 102, 255))); // NOI18N

        jTextArea10.setColumns(20);
        jTextArea10.setEditable(false);
        jTextArea10.setRows(5);
        jScrollPane20.setViewportView(jTextArea10);

        jScrollPane20.setBounds(10, 80, 750, 50);
        jLayeredPane33.add(jScrollPane20, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel130.setForeground(new java.awt.Color(51, 102, 255));
        jLabel130.setText("Descripción:");
        jLabel130.setBounds(10, 60, 70, -1);
        jLayeredPane33.add(jLabel130, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLabel131.setForeground(new java.awt.Color(51, 102, 255));
        jLabel131.setBounds(10, 30, 590, 20);
        jLayeredPane33.add(jLabel131, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jLayeredPane33.setBounds(10, 270, 770, 140);
        jLayeredPane32.add(jLayeredPane33, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jButton25.setText("Modificar");
        jButton25.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton25ActionPerformed(evt);
            }
        });
        jButton25.setBounds(370, 420, 75, 23);
        jLayeredPane32.add(jButton25, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jTabbedPane4.addTab("Ver asignaciones", new javax.swing.ImageIcon(getClass().getResource("/imagenes/vcard.png")), jLayeredPane32); // NOI18N

        jLabel112.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/logo_proyeccion_a_la_comunidad(transparente)2.png"))); // NOI18N

        javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);
        jPanel10.setLayout(jPanel10Layout);
        jPanel10Layout.setHorizontalGroup(
            jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel10Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel112)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 394, Short.MAX_VALUE)
                .addComponent(jLabel111)
                .addGap(24, 24, 24))
            .addComponent(jTabbedPane4, javax.swing.GroupLayout.DEFAULT_SIZE, 800, Short.MAX_VALUE)
        );
        jPanel10Layout.setVerticalGroup(
            jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel10Layout.createSequentialGroup()
                .addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel10Layout.createSequentialGroup()
                        .addGap(21, 21, 21)
                        .addComponent(jLabel111))
                    .addComponent(jLabel112))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jTabbedPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 511, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        jPanel10.setBounds(0, 0, 800, 608);
        jLayeredPane5.add(jPanel10, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jPanel12.setMinimumSize(new java.awt.Dimension(800, 600));

        jLabel132.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/logo_proyeccion_a_la_comunidad(transparente).png"))); // NOI18N

        jLabel133.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/home.png"))); // NOI18N
        jLabel133.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jLabel133MouseClicked(evt);
            }
            public void mouseEntered(java.awt.event.MouseEvent evt) {
                jLabel133MouseEntered(evt);
            }
        });

        jLayeredPane34.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Consulta de Postulados", javax.swing.border.TitledBorder.CENTER, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 14), new java.awt.Color(51, 102, 255))); // NOI18N

        jTable11.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Title 1", "Title 2", "Title 3", "Title 4"
            }
        ));
        jTable11.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jTable11MouseClicked(evt);
            }
        });
        jScrollPane21.setViewportView(jTable11);

        jScrollPane21.setBounds(10, 30, 780, 320);
        jLayeredPane34.add(jScrollPane21, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jTextArea11.setColumns(20);
        jTextArea11.setEditable(false);
        jTextArea11.setRows(5);
        jTextArea11.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Especialidad", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 11), new java.awt.Color(51, 102, 255))); // NOI18N
        jScrollPane22.setViewportView(jTextArea11);

        jScrollPane22.setBounds(10, 370, 540, 90);
        jLayeredPane34.add(jScrollPane22, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jButton27.setIcon(new javax.swing.ImageIcon(getClass().getResource("/imagenes/refresh.png"))); // NOI18N
        jButton27.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton27ActionPerformed(evt);
            }
        });
        jButton27.setBounds(690, 370, 60, 60);
        jLayeredPane34.add(jButton27, javax.swing.JLayeredPane.DEFAULT_LAYER);

        jButton28.setText("Eliminar");
        jButton28.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton28ActionPerformed(evt);
            }
        });
        jButton28.setBounds(680, 440, 80, 23);
        jLayeredPane34.add(jButton28, javax.swing.JLayeredPane.DEFAULT_LAYER);

        javax.swing.GroupLayout jPanel12Layout = new javax.swing.GroupLayout(jPanel12);
        jPanel12.setLayout(jPanel12Layout);
        jPanel12Layout.setHorizontalGroup(
            jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel12Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel132)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 318, Short.MAX_VALUE)
                .addComponent(jLabel133)
                .addGap(40, 40, 40))
            .addComponent(jLayeredPane34, javax.swing.GroupLayout.DEFAULT_SIZE, 800, Short.MAX_VALUE)
        );
        jPanel12Layout.setVerticalGroup(
            jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel12Layout.createSequentialGroup()
                .addGroup(jPanel12Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel12Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabel132))
                    .addGroup(jPanel12Layout.createSequentialGroup()
                        .addGap(26, 26, 26)
                        .addComponent(jLabel133)))
                .addGap(18, 18, 18)
                .addComponent(jLayeredPane34, javax.swing.GroupLayout.DEFAULT_SIZE, 477, Short.MAX_VALUE))
        );

        jPanel12.setBounds(0, 0, 800, 600);
        jLayeredPane5.add(jPanel12, javax.swing.JLayeredPane.DEFAULT_LAYER);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 800, Short.MAX_VALUE)
            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(jLayeredPane5, javax.swing.GroupLayout.DEFAULT_SIZE, 800, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 600, Short.MAX_VALUE)
            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(jLayeredPane5, javax.swing.GroupLayout.DEFAULT_SIZE, 600, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        // TODO add your handling code here:
        jPanel1.setVisible(false);
        jPanel2.setVisible(true);
        jComboBox4.setSelectedIndex(0);
        jTextField19.setText(null);
    }//GEN-LAST:event_jButton1ActionPerformed

    private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed
        // TODO add your handling code here:
        System.exit(0);
    }//GEN-LAST:event_jButton2ActionPerformed

    private void jButton1MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton1MouseEntered
        // TODO add your handling code here:
        jButton1.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
        jLabel2.setText("Agregar datos tanto de voluntariados como de proyectos");
    }//GEN-LAST:event_jButton1MouseEntered

    private void formMouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_formMouseEntered
        // TODO add your handling code here:
        jLabel2.setText(null);
    }//GEN-LAST:event_formMouseEntered

    private void jButton2MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton2MouseEntered
        // TODO add your handling code here:
        jButton2.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
        jLabel2.setText("Salir de la aplicación");
    }//GEN-LAST:event_jButton2MouseEntered

    private void jTextField1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField1ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextField1ActionPerformed

    private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton3ActionPerformed
        // TODO add your handling code here:

       boolean existe = false;
       VoluntariadoJpaController Vctr = new VoluntariadoJpaController();
       List<Voluntariado> lista = Vctr.findVoluntariadoEntities();
       for(Voluntariado voluntariado : lista) {
           if ( Integer.parseInt(jTextField1.getText()) == voluntariado.getCedula() )
               existe = true;
       }

       if (existe == false) {
           try {

                Voluntariado V = new Voluntariado();

                String cedu;
                int cedula;

                cedu = jTextField1.getText();
                cedula = Integer.parseInt(cedu);
                V.setCedula(cedula);

                V.setNombre(jTextField2.getText());

                V.setApellido(jTextField3.getText());

                V.setFechanac(jDateChooser1.getDate());
                
                if (jTextField4.getText().isEmpty() == false)
                    V.setEmail(jTextField4.getText());

                if (jTextField5.getText().isEmpty() == false)
                    V.setTelefono(jTextField5.getText());

                if (jTextArea1.getText().isEmpty() == false)
                    V.setEspecialidad(jTextArea1.getText());

                if (jTextField18.getText().isEmpty() == false) {
                    byte[] byteimg = getBytesFromFile(archivo);
                    V.setFoto(byteimg);
                }
                
                if (jTextField6.getText().isEmpty() == false)
                    V.setExpediente(Integer.parseInt(jTextField6.getText()));

                if (jComboBox2.getSelectedIndex() != 0) {
                    V.setFacultad(jComboBox2.getSelectedItem().toString());
                    V.setEscuela(jComboBox3.getSelectedItem().toString());
                }

                if (jComboBox5.getSelectedIndex() != 0)
                    V.setSemestre(jComboBox5.getSelectedItem().toString());

                if (jComboBox6.getSelectedIndex() != 0)
                    V.setAnio(jComboBox6.getSelectedItem().toString());

                if (jComboBox1.getSelectedIndex() != 0) {
                    V.setTipoestudiante(jComboBox1.getSelectedItem().toString());
                    if (jComboBox7.getSelectedItem().equals("Otro") == false)
                        V.setArea(jComboBox7.getSelectedItem().toString());
                    else
                        V.setArea(jTextField9.getText());
                }


                Vctr.create(V);

                List<Voluntariado> lista1 = Vctr.findVoluntariadoEntities();
                for(Voluntariado voluntariado : lista1) {
                    if ( Integer.parseInt(jTextField1.getText()) == voluntariado.getCedula() ) {

                        Vector row=new Vector();

                        row.add(voluntariado.getCedula());
                        row.add(voluntariado.getNombre());
                        row.add(voluntariado.getApellido());

                        tabModel.addRow(row);
                        jTable1.setModel(tabModel);
                    }

                }

                for(Voluntariado voluntariado : lista1) {
                    if ( Integer.parseInt(jTextField1.getText()) == voluntariado.getCedula() ) {

                        Vector row=new Vector();

                        row.add(voluntariado.getInteres());
                        row.add(voluntariado.getCedula());
                        row.add(voluntariado.getNombre());
                        row.add(voluntariado.getApellido());

                        miModel.addRow(row);
                        jTable4.setModel(miModel);
                    }

                }
                

                JOptionPane.showMessageDialog(this,"Se ha agregado el Estudiante con éxito", "Información", 1);

                // Dejar los campos como estaban por defecto
                jTextField1.setText(null);
                jTextField2.setText(null);
                jTextField3.setText(null);
                jDateChooser1.setDate(null);
                jTextField4.setText(null);
                jTextField5.setText(null);
                jTextArea1.setText(null);
                jTextField6.setText(null);
                jComboBox2.setSelectedIndex(0);
                jComboBox3.removeAllItems();
                jComboBox5.setSelectedIndex(0);
                jComboBox6.setSelectedIndex(0);
                jTextField18.setText(null);
                jComboBox1.setSelectedIndex(0);
                jComboBox7.removeAllItems();
                jTextField9.setText(null);

            } catch(Exception e){
                e.printStackTrace();
            }
       }
       else {
           JOptionPane.showMessageDialog(this,"El número de cédula introducido ya se encuentra registrado en el sistema", "Alerta", 2);
       }

    }//GEN-LAST:event_jButton3ActionPerformed

    private void jComboBox2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBox2ActionPerformed
        // TODO add your handling code here:
        if (jComboBox2.getSelectedIndex() == 0) {
            jComboBox3.removeAllItems();
        }

        if (jComboBox2.getSelectedIndex() == 1) {
            jComboBox3.removeAllItems();
            jComboBox3.addItem("Administración y Contaduría");
            jComboBox3.addItem("Economía");
            jComboBox3.addItem("Ciencias Sociales");
        }

        if (jComboBox2.getSelectedIndex() == 2) {
            jComboBox3.removeAllItems();
            jComboBox3.addItem("Derecho");
        }

        if (jComboBox2.getSelectedIndex() == 3) {
            jComboBox3.removeAllItems();
            jComboBox3.addItem("Letras");
            jComboBox3.addItem("Psicología");
            jComboBox3.addItem("Comunicación Social");
            jComboBox3.addItem("Educación");
            jComboBox3.addItem("Filosofía");
        }

        if (jComboBox2.getSelectedIndex() == 4) {
            jComboBox3.removeAllItems();
            jComboBox3.addItem("Informática");
            jComboBox3.addItem("Telecomunicaciones");
            jComboBox3.addItem("Industrial");
            jComboBox3.addItem("Civil");
        }

        if (jComboBox2.getSelectedIndex() == 5) {
            jComboBox3.removeAllItems();
            jComboBox3.addItem("Teología");
        }
    }//GEN-LAST:event_jComboBox2ActionPerformed

    private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton4ActionPerformed
        // TODO add your handling code here:

       try {

            ServicioJpaController Sctr = new ServicioJpaController();
            Servicio S = new Servicio();

            S.setProyecto(jTextField7.getText());

            if (jTextArea2.getText().isEmpty() == false)
                S.setDescripcion(jTextArea2.getText());

            if (jComboBox8.getSelectedItem().toString().equals("Otro") == false)
                S.setCentro(jComboBox8.getSelectedItem().toString());
            else
                S.setCentro(jTextField8.getText());
      

            S.setCoordinadorproyecto(jTextField12.getText());
            S.setCoordinadorescuela(jTextField13.getText());

            Sctr.create(S);

            List<Servicio> lista1 = Sctr.findServicioEntities();
            for(Servicio servicio : lista1) {
                if ( Integer.parseInt(jTextField14.getText()) == servicio.getIdservicio() ) {
                    Vector row = new Vector();

                    row.add(servicio.getIdservicio());
                    row.add(servicio.getProyecto());
                    row.add(servicio.getCentro());
                    row.add(servicio.getCoordinadorproyecto());
                    row.add(servicio.getCoordinadorescuela());

                    tabModel2.addRow(row);
                    jTable2.setModel(tabModel2);
                }
            }

            for(Servicio servicio : lista1) {
                if ( Integer.parseInt(jTextField14.getText()) == servicio.getIdservicio() ) {
                    Vector row = new Vector();

                    row.add(servicio.getSeleccion());
                    row.add(servicio.getIdservicio());
                    row.add(servicio.getProyecto());
                    row.add(servicio.getCentro());

                    miModel3.addRow(row);
                    jTable5.setModel(miModel3);
                }
            }

            for(Servicio servicio : lista1) {
                if ( Integer.parseInt(jTextField14.getText()) == servicio.getIdservicio() ) {
                    Vector row = new Vector();

                    row.add(servicio.getIdservicio());
                    row.add(servicio.getProyecto());
                    row.add(servicio.getCentro());

                    tabModel7.addRow(row);
                    jTable7.setModel(tabModel7);
;
                }
            }

            JOptionPane.showMessageDialog(this,"Se ha agregado el Proyecto con éxito", "Información", 1);
            
            // Dejar los campos como estaban por defecto
            
            //Código para hallar el id mayor de la tabla
            int idmax = 0;
            List<Servicio> lista = Sctr.findServicioEntities();
            for(Servicio servicio : lista) {
                if (servicio.getIdservicio() > idmax)
                    idmax = servicio.getIdservicio();
            }
            jTextField14.setText(Integer.toString(idmax+1));
        
            jTextField7.setText(null);
            jTextArea2.setText(null);
            jTextField8.setText(null);
            jTextField12.setText(null);
            jTextField13.setText(null);
            jComboBox8.setSelectedIndex(0);

        } catch(Exception e){
            e.printStackTrace();
        }

    }//GEN-LAST:event_jButton4ActionPerformed

    private void jTextField15ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField15ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextField15ActionPerformed

    private void jButton7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton7ActionPerformed
        // TODO add your handling code here:
        
        boolean existe = false;
        ServicioHasVoluntariadoJpaController SVctr = new ServicioHasVoluntariadoJpaController();
        ServicioHasVoluntariado SV = new ServicioHasVoluntariado();
        
        List<ServicioHasVoluntariado> lista4 = SVctr.findServicioHasVoluntariadoEntities();
        for(ServicioHasVoluntariado shv : lista4) {
            if ( (shv.getVoluntariado().getCedula() == Integer.parseInt(jTextField15.getText())) & (shv.getServicio().getIdservicio() == Integer.parseInt(jTextField16.getText())) )
                existe = true;
        }

        if (existe == false) {

            try {


    //            ServicioHasVoluntariadoPK SVPK = new ServicioHasVoluntariadoPK();

    //            SVPK.setFkvoluntariado(Integer.parseInt(jTextField15.getText()));
    //            SVPK.setFkservicio(Integer.parseInt(jTextField16.getText()));

                VoluntariadoJpaController Vctr = new VoluntariadoJpaController();
                List<Voluntariado> lista = Vctr.findVoluntariadoEntities();
                for(Voluntariado voluntariado : lista) {
                   if (voluntariado.getCedula() == Integer.parseInt(jTextField15.getText())) {
                       SV.setVoluntariado(voluntariado);
                   }
                }

                ServicioJpaController Sctr = new ServicioJpaController();
                List<Servicio> lista2 = Sctr.findServicioEntities();
                for(Servicio servicio : lista2) {
                   if (servicio.getIdservicio() == Integer.parseInt(jTextField16.getText())) {
                       SV.setServicio(servicio);
                   }
                }

                if (jDateChooser2.getDateFormatString().isEmpty() == false)
                    SV.setFechaplanilla(jDateChooser2.getDate());

                SV.setFechaini(jDateChooser3.getDate());

                if (jDateChooser4.getDateFormatString().isEmpty() == false)
                    SV.setFechafin(jDateChooser4.getDate());

                SV.setHorastotal(Integer.parseInt(jTextField17.getText()));
                SV.setNumhoras(0);

                SVctr.create(SV);

                List<ServicioHasVoluntariado> lista3 = SVctr.findServicioHasVoluntariadoEntities();
                for(ServicioHasVoluntariado shv : lista3) {
                     if ( (Integer.parseInt(jTextField15.getText()) == shv.getVoluntariado().getCedula()) & (Integer.parseInt(jTextField16.getText()) == shv.getServicio().getIdservicio()) ) {
                        Vector row=new Vector();

                        SimpleDateFormat formato = new SimpleDateFormat("dd/MM/yyyy");

                        row.add(shv.getVoluntariado().getCedula());
                        row.add(shv.getVoluntariado().getNombre());
                        row.add(shv.getVoluntariado().getApellido());
                        row.add(shv.getServicio().getIdservicio());

                        if(shv.getFechaplanilla() != null)
                            row.add(formato.format(shv.getFechaplanilla()));
                        else
                            row.add(null);

                        row.add(formato.format(shv.getFechaini()));

                        if(shv.getFechafin() != null)
                            row.add(formato.format(shv.getFechafin()));
                        else
                            row.add(null);

                        row.add(shv.getNumhoras());
                        row.add(shv.getHorastotal());

                        tabModel3.addRow(row);
                        jTable3.setModel(tabModel3);
                     }
                }

                for(ServicioHasVoluntariado shv : lista3) {
                     if ( (Integer.parseInt(jTextField15.getText()) == shv.getVoluntariado().getCedula()) & (Integer.parseInt(jTextField16.getText()) == shv.getServicio().getIdservicio()) ) {
                        Vector row=new Vector();

                        row.add(shv.getSeleccion());
                        row.add(shv.getVoluntariado().getCedula());
                        row.add(shv.getVoluntariado().getNombre());
                        row.add(shv.getServicio().getIdservicio());
                        row.add(shv.getServicio().getProyecto());

                        miModel2.addRow(row);
                        jTable6.setModel(miModel2);
                     }
                }

                JOptionPane.showMessageDialog(this,"El estudiante fue asigando al proyecto con éxito", "Información", 1);

                // Dejar los campos como estaban por defecto

                jTable7.clearSelection();
                jTextField16.setText(null);
                jDateChooser2.setDate(null);
                jDateChooser3.setDate(null);
                jDateChooser4.setDate(null);
                jTextField17.setText(null);


            } catch(Exception e){
                e.printStackTrace();
            }
            
        }
        else
                JOptionPane.showMessageDialog(this,"EL proyecto seleccionado ya se encuentra asignado al estudiante", "Aviso", 2);
    }//GEN-LAST:event_jButton7ActionPerformed

    private void jButton8ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton8ActionPerformed
        // TODO add your handling code here:
        jPanel1.setVisible(false);
        jPanel3.setVisible(true);
        jComboBox4.setSelectedIndex(0);
        jTextField19.setText(null);

//       VoluntariadoJpaController Vctr = new VoluntariadoJpaController();
//       List<Voluntariado> lista = Vctr.findVoluntariadoEntities();
//       for(Voluntariado voluntariado : lista) {
//           if (voluntariado.getCedula() == 16880907) {
//
//               try {
//                    byte[] img = voluntariado.getFoto();
//                    Image imagen = getImage(img, false);
//
//                    Graphics g = getGraphics();
//                    super.paint(g);
//                    g.drawImage(imagen,0,0, 100, 100, jPanel3);
//
//                    //Icon icon = new ImageIcon(imagen);
//                   // jLabel48.setIcon(icon);
//
//                } catch (IOException ex) {
//                    Logger.getLogger(VentanaPrincipal.class.getName()).log(Level.SEVERE, null, ex);
//                }
//           }
//       }


    }//GEN-LAST:event_jButton8ActionPerformed

    private void jButton8MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton8MouseEntered
        // TODO add your handling code here:
        jButton8.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
        jLabel2.setText("Ver los estudiantes y proyectos registrados en el sistema");
    }//GEN-LAST:event_jButton8MouseEntered

    private void jButton9ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton9ActionPerformed
        // TODO add your handling code here:

        //Crea un nuevo filtro
        FileNameExtensionFilter filter = new FileNameExtensionFilter("Archivos de imagenes", "jpg");

        //Se crea el filechooser
        JFileChooser fileChooser = new JFileChooser();
        //Se añade el filtro
        fileChooser.setFileFilter(filter);
        //Título de la ventana
        fileChooser.setDialogTitle("Selecciona una imagen");
        //Se crea un nuevo File donde se especifica la ruta de destino
        File ruta = new File("C:/Users/Alberto/Pictures");
        //COloca la ruta donde se abrira el filechooser
        fileChooser.setCurrentDirectory(ruta);
        
        int directorio = fileChooser.showOpenDialog(null);
        if ( directorio == fileChooser.APPROVE_OPTION ) {
            File file = fileChooser.getSelectedFile();
            archivo = file;
            jTextField18.setText(String.valueOf(file));
        }
    }//GEN-LAST:event_jButton9ActionPerformed

    private void jLabel49MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel49MouseClicked
        // TODO add your handling code here:

        jPanel2.setVisible(false);
        jPanel1.setVisible(true);

        // Dejar los campos como estaban por defecto
        jTextField1.setText(null);
        jTextField2.setText(null);
        jTextField3.setText(null);
        jDateChooser1.setDate(null);
        jTextField4.setText(null);
        jTextField5.setText(null);
        jTextArea1.setText(null);
        jTextField6.setText(null);
        jComboBox2.setSelectedIndex(0);
        jComboBox3.removeAllItems();
        jComboBox5.setSelectedIndex(0);
        jComboBox6.setSelectedIndex(0);
        jTextField18.setText(null);
        jComboBox1.setSelectedIndex(0);
        jComboBox7.removeAllItems();
        jTextField9.setText(null);

        jTextField7.setText(null);
        jTextArea2.setText(null);
        jTextField8.setText(null);
        jTextField12.setText(null);
        jTextField13.setText(null);
        jComboBox8.setSelectedIndex(0);


    }//GEN-LAST:event_jLabel49MouseClicked

    private void jLabel49MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel49MouseEntered
        // TODO add your handling code here:
        jLabel49.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
    }//GEN-LAST:event_jLabel49MouseEntered

    private void jLabel50MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel50MouseClicked
        // TODO add your handling code here:
        jPanel3.setVisible(false);
        jPanel1.setVisible(true);

        jTable1.clearSelection();
        jTable3.clearSelection();
        jTable3.clearSelection();

        //Dejar limpio el panel de consulta de usuario
        jLabel48.setIcon(null);
        jLabel51.setText(null);
        jLabel53.setText(null);
        jLabel54.setText(null);
        jLabel55.setText(null);
        jLabel58.setText(null);
        jLabel59.setText(null);
        jLabel60.setText(null);
        jLabel63.setText(null);
        jLabel64.setText(null);
        jLabel65.setText(null);
        jLabel66.setText(null);
        jLabel67.setText(null);
        jLabel68.setText(null);
        jLabel77.setText(null);
        jLabel27.setText(null);
        jTextArea3.setText(null);
        jTextArea4.setText(null);
        jTextArea5.setText(null);
    }//GEN-LAST:event_jLabel50MouseClicked

    private void jLabel50MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel50MouseEntered
        // TODO add your handling code here:
        jLabel50.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
    }//GEN-LAST:event_jLabel50MouseEntered

    private void jTable1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTable1MouseClicked
        // TODO add your handling code here:

        int fila = jTable1.rowAtPoint(evt.getPoint());
        //int columna = jTable1.columnAtPoint(evt.getPoint());


        //System.out.println("Estos son los puntos:    fila: " + fila + " columna: " + columna);
        //JOptionPane.showMessageDialog(this,"Estos son los puntos:    fila: " + fila + " columna: " + columna + " El valor  es: " + jTable1.getValueAt(fila, columna), "Información", 1);

        SimpleDateFormat formato = new SimpleDateFormat("dd/MM/yyyy");

        VoluntariadoJpaController Vctr = new VoluntariadoJpaController();
        List<Voluntariado> lista = Vctr.findVoluntariadoEntities();
        for(Voluntariado voluntariado : lista) {
            if(voluntariado.getCedula() == Integer.parseInt(jTable1.getValueAt(fila, 0).toString())) {
                jTextArea3.setText(null);
                jLabel48.setIcon(null);

                jLabel51.setText("Cedula:  " + voluntariado.getCedula().toString());
                jTextField15.setText(voluntariado.getCedula().toString());
                jTextField26.setText(voluntariado.getCedula().toString());

                jLabel53.setText("Nombre:   " + voluntariado.getNombre());
                jTextField22.setText(voluntariado.getNombre().toString());

                jLabel54.setText("Apellido:   " + voluntariado.getApellido());
                jTextField11.setText(voluntariado.getApellido().toString());

                jLabel55.setText("Fecha nac:   " + formato.format(voluntariado.getFechanac()));
                jDateChooser5.setDate(voluntariado.getFechanac());

                if (voluntariado.getTelefono() != null) {
                    jLabel59.setText("Teléfono:   " + voluntariado.getTelefono());
                    jTextField21.setText(voluntariado.getTelefono());
                }
                else {
                    jLabel59.setText("Teléfono:");
                    jTextField21.setText(null);
                }

                if (voluntariado.getEmail() != null) {
                    jLabel60.setText("Email:   " + voluntariado.getEmail());
                    jTextField23.setText(voluntariado.getEmail());
                }
                else {
                    jLabel60.setText("Email:");
                    jTextField23.setText(null);
                }

                if (voluntariado.getExpediente() != null) {
                    jLabel64.setText("Expediente:   " + voluntariado.getExpediente());
                    jTextField24.setText(voluntariado.getExpediente().toString());
                }
                else {
                    jLabel64.setText("Expediente:");
                    jTextField24.setText(null);
                }

                if (voluntariado.getFacultad() != null) {
                    jLabel65.setText("Facultad:   " + voluntariado.getFacultad());
                    jComboBox9.setSelectedItem(voluntariado.getFacultad());
                }
                else {
                    jLabel65.setText("Facultad:");
                    jComboBox9.setSelectedIndex(0);
                }

                if (voluntariado.getEscuela() != null) {
                    jLabel66.setText("Escuela:   " + voluntariado.getEscuela());
                    jComboBox14.setSelectedItem(voluntariado.getEscuela());
                }
                else
                    jLabel66.setText("Escuela:");

                if (voluntariado.getSemestre() != null) {
                    jLabel67.setText("Semestre:   " + voluntariado.getSemestre());
                    jComboBox11.setSelectedItem(voluntariado.getSemestre());
                }
                else {
                    jLabel67.setText("Semestre:");
                    jComboBox11.setSelectedIndex(0);
                }

                if (voluntariado.getAnio() != null) {
                    jLabel68.setText("Año:   " + voluntariado.getAnio());
                    jComboBox12.setSelectedItem(voluntariado.getAnio());
                }
                else {
                    jLabel68.setText("Año:");
                    jComboBox12.setSelectedIndex(0);
                }
                
                if (voluntariado.getTipoestudiante() != null) {
                    jLabel63.setText("Tipo de estudiante:   " + voluntariado.getTipoestudiante());
                    jComboBox13.setSelectedItem(voluntariado.getTipoestudiante());
                }
                else {
                    jLabel63.setText("Tipo de estudiante:");
                    jComboBox13.setSelectedItem(null);
                }

                if (voluntariado.getArea() != null) {
                    jLabel58.setText("Area:   " + voluntariado.getArea());

                    boolean otro = true;
                    for (int i =0; i<jComboBox10.getItemCount(); i++) {
                        if (jComboBox10.getItemAt(i).toString().equals(voluntariado.getArea()))
                            otro = false;
                    }

                    if (otro) {
                        jComboBox10.setSelectedItem("Otro");
                        jTextField25.setText(voluntariado.getArea());
                    }
                    else {
                        jComboBox10.setSelectedItem(voluntariado.getArea());

                    }
                }
                else
                    jLabel58.setText("Area:");


                jTextArea3.setText(voluntariado.getEspecialidad());
                jTextArea6.setText(voluntariado.getEspecialidad());
                
                if (voluntariado.getInteres() == null) {
                    jLabel77.setText("Por responder");
                    jComboBox15.setSelectedItem("Por responder");
                }
                else
                    if (voluntariado.getInteres()) {
                        jLabel77.setText("Si");
                        jComboBox15.setSelectedItem("Si");
                    }
                    else {
                        jLabel77.setText("No");
                        jComboBox15.setSelectedItem("No");
                    }

                //Carga de la imagen
                if (voluntariado.getFoto() != null)
                    try {
                        byte[] img = voluntariado.getFoto();
                        Image imagen = getImage(img, false);

//                      Graphics g = getGraphics();
//                      super.paint(g);
//                      g.drawImage(imagen,0,0, 100, 100, jPanel3);

                        Icon icon = new ImageIcon(imagen);
                        jLabel48.setIcon(icon);

                    } catch (IOException ex) {
                        Logger.getLogger(VentanaPrincipal.class.getName()).log(Level.SEVERE, null, ex);
                    }
                
            }

        }

    }//GEN-LAST:event_jTable1MouseClicked

    private void jTable2MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTable2MouseClicked
        // TODO add your handling code here:
        int fila = jTable2.rowAtPoint(evt.getPoint());
        jTextArea4.setText(null);

        ServicioJpaController Sctr = new ServicioJpaController();
        List<Servicio> lista = Sctr.findServicioEntities();
        for(Servicio servicio : lista) {
            if(servicio.getIdservicio() == Integer.parseInt(jTable2.getValueAt(fila, 0).toString())) {
                jTextArea4.setText(servicio.getDescripcion());

                jTextField27.setText(servicio.getIdservicio().toString());

                jTextField10.setText(servicio.getProyecto());

                jTextArea7.setText(servicio.getDescripcion());

                boolean otro = true;
                for (int i =0; i<jComboBox16.getItemCount(); i++) {
                        if (jComboBox16.getItemAt(i).toString().equals(servicio.getCentro()))
                            otro = false;
                    }

                    if (otro) {
                        jComboBox16.setSelectedItem("Otro");
                        jTextField28.setText(servicio.getCentro());
                    }
                    else
                        jComboBox10.setSelectedItem(servicio.getCentro());

                jTextField29.setText(servicio.getCoordinadorproyecto());
                jTextField30.setText(servicio.getCoordinadorescuela());

            }
        }
    }//GEN-LAST:event_jTable2MouseClicked

    private void jComboBox1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBox1ActionPerformed
        // TODO add your handling code here:

        if (jComboBox1.getSelectedIndex() == 0) {
            jComboBox7.removeAllItems();
        }

        if (jComboBox1.getSelectedIndex() == 1) {
            jComboBox7.removeAllItems();
            jComboBox7.addItem("VTEP");
            jComboBox7.addItem("VTAJ");
            jComboBox7.addItem("VEC");
            jComboBox7.addItem("VAC");
            jComboBox7.addItem("VOLET");
            jComboBox7.addItem("Psicología");
            jComboBox7.addItem("Filosofía");
            jComboBox7.addItem("Comunicación Social");
            jComboBox7.addItem("Provocs");
            jComboBox7.addItem("Ecoucab");
            jComboBox7.addItem("Voluntarios de educación");
            jComboBox7.addItem("Medatia");
            jComboBox7.addItem("UM");
            jComboBox7.addItem("Pastoral");
            jComboBox7.addItem("Robótica");
            jComboBox7.addItem("UCABMun");
            jComboBox7.addItem("Voluntarios en real");
            jComboBox7.addItem("Proyecto Social");
            jComboBox7.addItem("Propedéutico verbal");
            jComboBox7.addItem("Propedéutico numérico");
        }

        if (jComboBox1.getSelectedIndex() == 2) {
            jComboBox7.removeAllItems();
            jComboBox7.addItem("Administración y Contaduría");
            jComboBox7.addItem("Economía");
            jComboBox7.addItem("Ciencias Sociales");
            jComboBox7.addItem("Derecho");
            jComboBox7.addItem("Letras");
            jComboBox7.addItem("Psicología");
            jComboBox7.addItem("Comunicación Social");
            jComboBox7.addItem("Educación");
            jComboBox7.addItem("Filosofía");
            jComboBox7.addItem("Informática");
            jComboBox7.addItem("Telecomunicaciones");
            jComboBox7.addItem("Industrial");
            jComboBox7.addItem("Civil");
            jComboBox7.addItem("Teología");
            jComboBox7.addItem("Otro");
        }

        if (jComboBox1.getSelectedIndex() == 3) {
            jComboBox7.removeAllItems();
            jComboBox7.addItem("Humanidades III");
            jComboBox7.addItem("Introducción al estudio del hombre");
            jComboBox7.addItem("Evaluación psicología");
            jComboBox7.addItem("Asesoramiento Psicológico");
            jComboBox7.addItem("Otro");
        }
    }//GEN-LAST:event_jComboBox1ActionPerformed

    private void jComboBox7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBox7ActionPerformed
        // TODO add your handling code here:
        if (jComboBox7.getSelectedItem() != null) {
            if (jComboBox7.getSelectedItem().toString().equals("Otro")) {
                jTextField9.setVisible(true);
            }
            if ( (jTextField9.isVisible()) & (jComboBox7.getSelectedItem().toString().equals("Otro") == false) ) {
                jTextField9.setText(null);
                jTextField9.setVisible(false);
            }
        }
        else {
            jTextField9.setText(null);
            jTextField9.setVisible(false);
        }


    }//GEN-LAST:event_jComboBox7ActionPerformed

    private void jComboBox8ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBox8ActionPerformed
        // TODO add your handling code here:

        if (jComboBox8.getSelectedItem().toString().equals("Otro"))
            jTextField8.setVisible(true);
        if ( (jTextField8.isVisible()) & (jComboBox8.getSelectedItem().toString().equals("Otro") == false) ) {
                jTextField8.setText(null);
                jTextField8.setVisible(false);
        }

    }//GEN-LAST:event_jComboBox8ActionPerformed

    private void jTable3MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTable3MouseClicked
        // TODO add your handling code here:

        int fila = jTable3.rowAtPoint(evt.getPoint());
        jTextArea5.setText(null);
        jLabel27.setText(null);

        ServicioHasVoluntariadoJpaController SVctr = new ServicioHasVoluntariadoJpaController();
        ServicioJpaController Sctr = new ServicioJpaController();
        List<Servicio> lista = Sctr.findServicioEntities();
        for(Servicio servicio : lista) {
            if(servicio.getIdservicio() == Integer.parseInt(jTable3.getValueAt(fila, 3).toString())) {
                jLabel27.setText("Título: " + servicio.getProyecto());
                jTextArea5.setText(servicio.getDescripcion());
            }
        }
        
        List<ServicioHasVoluntariado> lista1 = SVctr.findServicioHasVoluntariadoEntities();
        for(ServicioHasVoluntariado shv: lista1) {
            if(shv.getVoluntariado().getCedula() == Integer.parseInt(jTable3.getValueAt(fila, 0).toString()) & shv.getServicio().getIdservicio() == Integer.parseInt(jTable3.getValueAt(fila, 3).toString())) {
                jTextField31.setText(shv.getVoluntariado().getCedula().toString());

                jTextField32.setText(shv.getServicio().getIdservicio().toString());

                if(shv.getFechaplanilla() != null) {
                    jDateChooser6.setDate(shv.getFechaplanilla());
                }
                else
                    jDateChooser6.setDate(null);

                jDateChooser7.setDate(shv.getFechaini());

                if(shv.getFechafin() != null) {
                    jDateChooser8.setDate(shv.getFechafin());
                }
                else
                    jDateChooser8.setDate(null);

                Integer num;
                num = shv.getHorastotal();
                jTextField33.setText(num.toString());

                jTextField34.setText(shv.getNumhoras().toString());

            }
        }

    }//GEN-LAST:event_jTable3MouseClicked

    private void jButton11MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton11MouseEntered
        // TODO add your handling code here:
        jButton11.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
        jLabel2.setText("Eliminar datos del sistema");
    }//GEN-LAST:event_jButton11MouseEntered

    private void jLabel62MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel62MouseClicked
        // TODO add your handling code here:
        jPanel5.setVisible(false);
        jPanel1.setVisible(true);
        
    }//GEN-LAST:event_jLabel62MouseClicked

    private void jLabel62MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel62MouseEntered
        // TODO add your handling code here:
        jLabel62.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
    }//GEN-LAST:event_jLabel62MouseEntered

    private void jButton11ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton11ActionPerformed
        // TODO add your handling code here:
        jPanel1.setVisible(false);
        jPanel5.setVisible(true);
        jComboBox4.setSelectedIndex(0);
        jTextField19.setText(null);
    }//GEN-LAST:event_jButton11ActionPerformed

    private void jButton12ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton12ActionPerformed
        // TODO add your handling code here:
        boolean selecciono = false;

        VoluntariadoJpaController Vctr = new VoluntariadoJpaController();
        ServicioJpaController Sctr = new ServicioJpaController();
        ServicioHasVoluntariadoJpaController SVctr = new ServicioHasVoluntariadoJpaController();
        ServicioHasVoluntariadoPK SVPK = new ServicioHasVoluntariadoPK();
        ServicioHasVoluntariado SV = new ServicioHasVoluntariado();
        
        if(jTabbedPane3.getSelectedIndex() == 0) {

            for(int i=0;i<miModel.getRowCount();i++) {

                if(miModel.getValueAt(i, 0) != null) {
                    if(miModel.getValueAt(i, 0).equals(true)) {
                        for(int k=0;k<miModel2.getRowCount();k++) {
                            if( Integer.parseInt(miModel2.getValueAt(k, 1).toString()) == Integer.parseInt(miModel.getValueAt(i, 1).toString()) ) {

                                try {
                                    List<ServicioHasVoluntariado> lista = SVctr.findServicioHasVoluntariadoEntities();
                                    for(ServicioHasVoluntariado shv : lista) {
                                        if(shv.getVoluntariado().getCedula() == Integer.parseInt(miModel2.getValueAt(k, 1).toString())) {
                                            SVctr.destroy(shv.getServicioHasVoluntariadoPK());
                                            miModel2.removeRow(k);
                                            tabModel3.removeRow(k);
                                            k--;
                                        }
                                    }
                                }
                                catch (NonexistentEntityException ex) {
                                    Logger.getLogger(VentanaPrincipal.class.getName()).log(Level.SEVERE, null, ex);
                                }
                            }
                        }
                        try {

                            Vctr.destroy(Integer.parseInt(miModel.getValueAt(i, 1).toString()));
                            miModel.removeRow(i);
                            tabModel.removeRow(i);
                            i--;
                            selecciono = true;
                        } catch (IllegalOrphanException ex) {
                            Logger.getLogger(VentanaPrincipal.class.getName()).log(Level.SEVERE, null, ex);
                        } catch (NonexistentEntityException ex) {
                            Logger.getLogger(VentanaPrincipal.class.getName()).log(Level.SEVERE, null, ex);
                        }
                    }

                }

            }

            if (selecciono) {
                jTable4.setModel(miModel);
                jTable6.setModel(miModel2);
                jTable1.setModel(tabModel);
                jTable3.setModel(tabModel3);
                JOptionPane.showMessageDialog(this,"Los estudiantes seleccionados se eliminaron del sistema con éxito", "Información", 1);
            }
            else
                JOptionPane.showMessageDialog(this,"Debe seleccionr los estudiantes a eliminar", "Aviso", 2);

        }

        if(jTabbedPane3.getSelectedIndex() == 1) {

            for(int i=0;i<miModel3.getRowCount();i++) {

                if(miModel3.getValueAt(i, 0) != null) {
                    if(miModel3.getValueAt(i, 0).equals(true)) {
                        for(int k=0;k<miModel2.getRowCount();k++) {
                            if( Integer.parseInt(miModel2.getValueAt(k, 3).toString()) == Integer.parseInt(miModel3.getValueAt(i, 1).toString()) ) {

                                try {
                                    List<ServicioHasVoluntariado> lista = SVctr.findServicioHasVoluntariadoEntities();
                                    for(ServicioHasVoluntariado shv : lista) {
                                        if(shv.getServicio().getIdservicio() == Integer.parseInt(miModel2.getValueAt(k, 3).toString())) {
                                            SVctr.destroy(shv.getServicioHasVoluntariadoPK());
                                            miModel2.removeRow(k);
                                            tabModel3.removeRow(k);
                                            k--;
                                        }
                                    }
                                }
                                catch (NonexistentEntityException ex) {
                                    Logger.getLogger(VentanaPrincipal.class.getName()).log(Level.SEVERE, null, ex);
                                }
                            }
                        }
                        try {

                            Sctr.destroy(Integer.parseInt(miModel3.getValueAt(i, 1).toString()));
                            miModel3.removeRow(i);
                            tabModel2.removeRow(i);
                            tabModel7.removeRow(i);
                            i--;
                            selecciono = true;
                        } catch (IllegalOrphanException ex) {
                            Logger.getLogger(VentanaPrincipal.class.getName()).log(Level.SEVERE, null, ex);
                        } catch (NonexistentEntityException ex) {
                            Logger.getLogger(VentanaPrincipal.class.getName()).log(Level.SEVERE, null, ex);
                        }
                    }

                }

            }

            if (selecciono) {
                jTable5.setModel(miModel3);
                jTable6.setModel(miModel2);
                jTable2.setModel(tabModel2);
                jTable3.setModel(tabModel3);
                JOptionPane.showMessageDialog(this,"Los proyectos seleccionados se eliminaron del sistema con éxito", "Información", 1);
            }
            else
                JOptionPane.showMessageDialog(this,"Debe seleccionr los proyectos a eliminar", "Aviso", 2);

        }

        if(jTabbedPane3.getSelectedIndex() == 2) {

            for(int i=0;i<miModel2.getRowCount();i++) {

                if(miModel2.getValueAt(i, 0) != null) {
                    if(miModel2.getValueAt(i, 0).equals(true)) {
                        try {
                            List<ServicioHasVoluntariado> lista = SVctr.findServicioHasVoluntariadoEntities();
                            for(ServicioHasVoluntariado shv : lista) {
                                if( (shv.getVoluntariado().getCedula() == Integer.parseInt(miModel2.getValueAt(i, 1).toString())) & (shv.getServicio().getIdservicio() == Integer.parseInt(miModel2.getValueAt(i, 3).toString())) ) {
                                    SVctr.destroy(shv.getServicioHasVoluntariadoPK());
                                    miModel2.removeRow(i);
                                    tabModel3.removeRow(i);
                                    i--;
                                    selecciono = true;
                                }
                            }
                        }
                        catch (NonexistentEntityException ex) {
                            Logger.getLogger(VentanaPrincipal.class.getName()).log(Level.SEVERE, null, ex);
                        }
                    }
                }
            }

            if (selecciono) {
                jTable6.setModel(miModel2);
                jTable3.setModel(tabModel3);
                JOptionPane.showMessageDialog(this,"Las asignaciones seleccionadas se eliminaron del sistema con éxito", "Información", 1);
            }
            else
                JOptionPane.showMessageDialog(this,"Debe seleccionr las asignaciones a eliminar", "Aviso", 2);

        }
    }//GEN-LAST:event_jButton12ActionPerformed

    private void jButton13ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton13ActionPerformed
        // TODO add your handling code here:

        boolean seleccion = false;

        for (int i=0; i<jTable1.getRowCount();i++)
            if(jTable1.isRowSelected(i))
                seleccion = true;

        if (seleccion) {
            jPanel3.setVisible(false);
            jPanel6.setVisible(true);
            jTable1.clearSelection();

            //Dejar limpio el panel de consulta de usuario
            jLabel48.setIcon(null);
            jLabel51.setText(null);
            jLabel53.setText(null);
            jLabel54.setText(null);
            jLabel55.setText(null);
            jLabel58.setText(null);
            jLabel59.setText(null);
            jLabel60.setText(null);
            jLabel63.setText(null);
            jLabel64.setText(null);
            jLabel65.setText(null);
            jLabel66.setText(null);
            jLabel67.setText(null);
            jLabel68.setText(null);
            jLabel77.setText(null);
            jTextArea3.setText(null);

        }
        else
            JOptionPane.showMessageDialog(this,"Debe seleccionar un estudiante de la lista", "Aviso", 2);

    }//GEN-LAST:event_jButton13ActionPerformed

    private void jLabel72MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel72MouseClicked
        // TODO add your handling code here:
        jPanel6.setVisible(false);
        jPanel1.setVisible(true);

         // Dejar los campos como estaban por defecto

        jTable7.clearSelection();
        jTextField15.setText(null);
        jTextField16.setText(null);
        jDateChooser2.setDate(null);
        jDateChooser3.setDate(null);
        jDateChooser4.setDate(null);
        jTextField17.setText(null);

    }//GEN-LAST:event_jLabel72MouseClicked

    private void jLabel72MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel72MouseEntered
        // TODO add your handling code here:
        jLabel72.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
    }//GEN-LAST:event_jLabel72MouseEntered

    private void jLabel19MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel19MouseEntered
        // TODO add your handling code here:
        jLabel19.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
    }//GEN-LAST:event_jLabel19MouseEntered

    private void jLabel19MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel19MouseClicked
        // TODO add your handling code here:
        jPanel6.setVisible(false);

        if (panel10) {
            jPanel10.setVisible(true);
            panel10 = false;
        }
        else
            jPanel3.setVisible(true);

        // Dejar los campos como estaban por defecto

        jTable7.clearSelection();
        jTextField15.setText(null);
        jTextField16.setText(null);
        jDateChooser2.setDate(null);
        jDateChooser3.setDate(null);
        jDateChooser4.setDate(null);
        jTextField17.setText(null);

    }//GEN-LAST:event_jLabel19MouseClicked

    private void jTable7MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTable7MouseClicked
        // TODO add your handling code here:

        int fila = jTable7.rowAtPoint(evt.getPoint());
        jTextField16.setText(null);

        ServicioJpaController Sctr = new ServicioJpaController();
        List<Servicio> lista = Sctr.findServicioEntities();
        for(Servicio servicio : lista) {
            if(servicio.getIdservicio() == Integer.parseInt(jTable7.getValueAt(fila, 0).toString())) {
                jTextField16.setText(servicio.getIdservicio().toString());
            }
        }
    }//GEN-LAST:event_jTable7MouseClicked

    private void jLabel43MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel43MouseClicked
        // TODO add your handling code here:
        jPanel7.setVisible(false);

        if (panel10) {
            jPanel10.setVisible(true);
            panel10 = false;
        }
        else
            jPanel3.setVisible(true);

        // Dejar los campos como estaban por defecto
        jTextField26.setText(null);
        jTextField22.setText(null);
        jTextField11.setText(null);
        jDateChooser5.setDate(null);
        jTextField23.setText(null);
        jTextField21.setText(null);
        jTextArea6.setText(null);
        jTextField24.setText(null);
        jComboBox9.setSelectedIndex(0);
        jComboBox14.removeAllItems();
        jComboBox11.setSelectedIndex(0);
        jComboBox12.setSelectedIndex(0);
        jTextField20.setText(null);
        jComboBox13.setSelectedIndex(0);
        jComboBox10.removeAllItems();
        jTextField25.setText(null);
    }//GEN-LAST:event_jLabel43MouseClicked

    private void jLabel43MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel43MouseEntered
        // TODO add your handling code here:
        jLabel43.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
    }//GEN-LAST:event_jLabel43MouseEntered

    private void jLabel74MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel74MouseClicked
        // TODO add your handling code here:
        jPanel7.setVisible(false);
        jPanel1.setVisible(true);

        // Dejar los campos como estaban por defecto
        jTextField26.setText(null);
        jTextField22.setText(null);
        jTextField11.setText(null);
        jDateChooser5.setDate(null);
        jTextField23.setText(null);
        jTextField21.setText(null);
        jTextArea6.setText(null);
        jTextField24.setText(null);
        jComboBox9.setSelectedIndex(0);
        jComboBox14.removeAllItems();
        jComboBox11.setSelectedIndex(0);
        jComboBox12.setSelectedIndex(0);
        jTextField20.setText(null);
        jComboBox13.setSelectedIndex(0);
        jComboBox10.removeAllItems();
        jTextField25.setText(null);
    }//GEN-LAST:event_jLabel74MouseClicked

    private void jLabel74MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel74MouseEntered
        // TODO add your handling code here:
        jLabel74.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
    }//GEN-LAST:event_jLabel74MouseEntered

    private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton5ActionPerformed
        // TODO add your handling code here:
        boolean seleccion = false;
        
        for (int i=0; i<jTable1.getRowCount();i++)
            if(jTable1.isRowSelected(i))
                seleccion = true;

        if (seleccion) {
            jPanel3.setVisible(false);
            jPanel7.setVisible(true);
            jTable1.clearSelection();

            //Dejar limpio el panel de consulta de usuario
            jLabel48.setIcon(null);
            jLabel51.setText(null);
            jLabel53.setText(null);
            jLabel54.setText(null);
            jLabel55.setText(null);
            jLabel58.setText(null);
            jLabel59.setText(null);
            jLabel60.setText(null);
            jLabel63.setText(null);
            jLabel64.setText(null);
            jLabel65.setText(null);
            jLabel66.setText(null);
            jLabel67.setText(null);
            jLabel68.setText(null);
            jLabel77.setText(null);
            jTextArea3.setText(null);

        }
        else
            JOptionPane.showMessageDialog(this,"Debe seleccionar un estudiante de la lista", "Aviso", 2);
    }//GEN-LAST:event_jButton5ActionPerformed

    private void jButton14ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton14ActionPerformed
        // TODO add your handling code here:

        //Crea un nuevo filtro
        FileNameExtensionFilter filter = new FileNameExtensionFilter("Archivos de imagenes", "jpg");

        //Se crea el filechooser
        JFileChooser fileChooser = new JFileChooser();
        //Se añade el filtro
        fileChooser.setFileFilter(filter);
        //Título de la ventana
        fileChooser.setDialogTitle("Selecciona una imagen");
        //Se crea un nuevo File donde se especifica la ruta de destino
        File ruta = new File("C:/Users/Alberto/Pictures");
        //COloca la ruta donde se abrira el filechooser
        fileChooser.setCurrentDirectory(ruta);

        int directorio = fileChooser.showOpenDialog(null);
        if ( directorio == fileChooser.APPROVE_OPTION ) {
            File file = fileChooser.getSelectedFile();
            archivo = file;
            jTextField20.setText(String.valueOf(file));
        }
    }//GEN-LAST:event_jButton14ActionPerformed

    private void jComboBox9ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBox9ActionPerformed
        // TODO add your handling code here:
        
        if (jComboBox9.getSelectedIndex() == 0) {
            jComboBox14.removeAllItems();
        }

        if (jComboBox9.getSelectedIndex() == 1) {
            jComboBox14.removeAllItems();
            jComboBox14.addItem("Administración y Contaduría");
            jComboBox14.addItem("Economía");
            jComboBox14.addItem("Ciencias Sociales");
        }

        if (jComboBox9.getSelectedIndex() == 2) {
            jComboBox14.removeAllItems();
            jComboBox14.addItem("Derecho");
        }

        if (jComboBox9.getSelectedIndex() == 3) {
            jComboBox14.removeAllItems();
            jComboBox14.addItem("Letras");
            jComboBox14.addItem("Psicología");
            jComboBox14.addItem("Comunicación Social");
            jComboBox14.addItem("Educación");
            jComboBox14.addItem("Filosofía");
        }

        if (jComboBox9.getSelectedIndex() == 4) {
            jComboBox14.removeAllItems();
            jComboBox14.addItem("Informática");
            jComboBox14.addItem("Telecomunicaciones");
            jComboBox14.addItem("Industrial");
            jComboBox14.addItem("Civil");
        }

        if (jComboBox9.getSelectedIndex() == 5) {
            jComboBox14.removeAllItems();
            jComboBox14.addItem("Teología");
        }

    }//GEN-LAST:event_jComboBox9ActionPerformed

    private void jComboBox10ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBox10ActionPerformed
        // TODO add your handling code here:

        if (jComboBox10.getSelectedItem() != null) {
            if (jComboBox10.getSelectedItem().toString().equals("Otro")) {
                jTextField25.setVisible(true);
            }
            if ( (jTextField25.isVisible()) & (jComboBox10.getSelectedItem().toString().equals("Otro") == false) ) {
                jTextField25.setText(null);
                jTextField25.setVisible(false);
            }
        }
        else {
            jTextField25.setText(null);
            jTextField25.setVisible(false);
        }
    }//GEN-LAST:event_jComboBox10ActionPerformed

    private void jComboBox13ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBox13ActionPerformed
        // TODO add your handling code here:

        if ( (jComboBox13.getSelectedIndex() == 0) || (jComboBox13.getSelectedItem() == null ) ) {
            jComboBox10.removeAllItems();
        }

        if (jComboBox13.getSelectedIndex() == 1) {
            jComboBox10.removeAllItems();
            jComboBox10.addItem("VTEP");
            jComboBox10.addItem("VTAJ");
            jComboBox10.addItem("VEC");
            jComboBox10.addItem("VAC");
            jComboBox10.addItem("VOLET");
            jComboBox10.addItem("Psicología");
            jComboBox10.addItem("Filosofía");
            jComboBox10.addItem("Comunicación Social");
            jComboBox10.addItem("Provocs");
            jComboBox10.addItem("Ecoucab");
            jComboBox10.addItem("Voluntarios de educación");
            jComboBox10.addItem("Medatia");
            jComboBox10.addItem("UM");
            jComboBox10.addItem("Pastoral");
            jComboBox10.addItem("Robótica");
            jComboBox10.addItem("UCABMun");
            jComboBox10.addItem("Voluntarios en real");
            jComboBox10.addItem("Proyecto Social");
            jComboBox10.addItem("Propedéutico verbal");
            jComboBox10.addItem("Propedéutico numérico");
            jComboBox10.addItem("Otro");


        }

        if (jComboBox13.getSelectedIndex() == 2) {
            jComboBox10.removeAllItems();
            jComboBox10.addItem("Administración y Contaduría");
            jComboBox10.addItem("Economía");
            jComboBox10.addItem("Ciencias Sociales");
            jComboBox10.addItem("Derecho");
            jComboBox10.addItem("Letras");
            jComboBox10.addItem("Psicología");
            jComboBox10.addItem("Comunicación Social");
            jComboBox10.addItem("Educación");
            jComboBox10.addItem("Filosofía");
            jComboBox10.addItem("Informática");
            jComboBox10.addItem("Telecomunicaciones");
            jComboBox10.addItem("Industrial");
            jComboBox10.addItem("Civil");
            jComboBox10.addItem("Teología");
            jComboBox10.addItem("Otro");
        }

        if (jComboBox13.getSelectedIndex() == 3) {
            jComboBox10.removeAllItems();
            jComboBox10.addItem("Humanidades III");
            jComboBox10.addItem("Introducción al estudio del hombre");
            jComboBox10.addItem("Evaluación psicología");
            jComboBox10.addItem("Asesoramiento Psicológico");
            jComboBox10.addItem("Otro");
        }
    }//GEN-LAST:event_jComboBox13ActionPerformed

    private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton6ActionPerformed
        // TODO add your handling code here:

       VoluntariadoJpaController Vctr = new VoluntariadoJpaController();
       List<Voluntariado> lista = Vctr.findVoluntariadoEntities();
       for(Voluntariado V : lista) {
           if ( Integer.parseInt(jTextField26.getText()) == V.getCedula() ) {
               
               try {

//                    String cedu;
//                    int cedula;

//                    cedu = jTextField10.getText();
//                    cedula = Integer.parseInt(cedu);
//                    V.setCedula(cedula);

                    V.setNombre(jTextField22.getText());

                    V.setApellido(jTextField11.getText());

                    V.setFechanac(jDateChooser5.getDate());

                    if (jTextField23.getText().isEmpty() == false)
                        V.setEmail(jTextField23.getText());

                    if (jTextField21.getText().isEmpty() == false)
                        V.setTelefono(jTextField21.getText());

                    if (jTextArea6.getText().isEmpty() == false)
                        V.setEspecialidad(jTextArea6.getText());

                    if (jTextField20.getText().isEmpty() == false) {
                        byte[] byteimg = getBytesFromFile(archivo);
                        V.setFoto(byteimg);
                    }

                    if (jTextField24.getText().isEmpty() == false)
                        V.setExpediente(Integer.parseInt(jTextField24.getText()));

                    if (jComboBox9.getSelectedIndex() != 0) {
                        V.setFacultad(jComboBox9.getSelectedItem().toString());
                        V.setEscuela(jComboBox14.getSelectedItem().toString());
                    }

                    if (jComboBox11.getSelectedIndex() != 0)
                        V.setSemestre(jComboBox11.getSelectedItem().toString());

                    if (jComboBox12.getSelectedIndex() != 0)
                        V.setAnio(jComboBox12.getSelectedItem().toString());

                    if (jComboBox13.getSelectedIndex() != 0) {
                        V.setTipoestudiante(jComboBox13.getSelectedItem().toString());
                        if (jComboBox10.getSelectedItem().equals("Otro") == false)
                            V.setArea(jComboBox10.getSelectedItem().toString());
                        else
                            V.setArea(jTextField25.getText());
                    }

                    if (jComboBox15.getSelectedItem() == "No") {
                        V.setInteres(false);
                    }
                    else
                        if ((jComboBox15.getSelectedItem() == "Si")) {
                            V.setInteres(true);
                        }
                        else {
                            V.setInteres(null);
                        }


                    Vctr.edit(V);

                    for (int i = 0; i<tabModel.getRowCount(); i++) {
                        tabModel.removeRow(i);
                        i--;
                    }

                    List<Voluntariado> lista1 = Vctr.findVoluntariadoEntities();
                    for(Voluntariado voluntariado : lista1) {
                        Vector row=new Vector();

                        row.add(voluntariado.getCedula());
                        row.add(voluntariado.getNombre());
                        row.add(voluntariado.getApellido());

                        tabModel.addRow(row);

                    }

                    jTable1.setModel(tabModel);
                    //jTable1.clearSelection();

                    for (int i = 0; i<miModel.getRowCount(); i++) {
                        miModel.removeRow(i);
                        i--;
                    }

                    for(Voluntariado voluntariado : lista1) {
                        Vector row=new Vector();

                        row.add(voluntariado.getInteres());
                        row.add(voluntariado.getCedula());
                        row.add(voluntariado.getNombre());
                        row.add(voluntariado.getApellido());

                        miModel.addRow(row);
                    }

                    jTable4.setModel(miModel);

                    for (int i = 0; i<tabModel3.getRowCount(); i++) {
                        tabModel3.removeRow(i);
                        i--;
                    }

                    ServicioHasVoluntariadoJpaController SVctr = new ServicioHasVoluntariadoJpaController();

                    List<ServicioHasVoluntariado> lista2 = SVctr.findServicioHasVoluntariadoEntities();
                    for(ServicioHasVoluntariado shv : lista2) {
                        Vector row=new Vector();

                        SimpleDateFormat formato = new SimpleDateFormat("dd/MM/yyyy");

                        row.add(shv.getVoluntariado().getCedula());
                        row.add(shv.getVoluntariado().getNombre());
                        row.add(shv.getVoluntariado().getApellido());
                        row.add(shv.getServicio().getIdservicio());
                        if(shv.getFechaplanilla() != null)
                            row.add(formato.format(shv.getFechaplanilla()));
                        else
                            row.add(null);

                        row.add(formato.format(shv.getFechaini()));

                        if(shv.getFechafin() != null)
                            row.add(formato.format(shv.getFechafin()));
                        else
                            row.add(null);

                        row.add(shv.getNumhoras());
                        row.add(shv.getHorastotal());

                        tabModel3.addRow(row);
                    }

                    jTable3.setModel(tabModel3);

                    for (int i = 0; i<miModel2.getRowCount(); i++) {
                        miModel2.removeRow(i);
                        i--;
                    }

                    List<ServicioHasVoluntariado> lista3 = SVctr.findServicioHasVoluntariadoEntities();
                    for(ServicioHasVoluntariado shv : lista3) {
                        Vector row=new Vector();

                        row.add(shv.getSeleccion());
                        row.add(shv.getVoluntariado().getCedula());
                        row.add(shv.getVoluntariado().getNombre());
                        row.add(shv.getServicio().getIdservicio());
                        row.add(shv.getServicio().getProyecto());

                        miModel2.addRow(row);
                    }

                    jTable6.setModel(miModel2);

                    JOptionPane.showMessageDialog(this,"Se ha modificado los datos del estudiante con éxito", "Información", 1);
                    jPanel7.setVisible(false);
                    jPanel3.setVisible(true);

                    // Dejar los campos como estaban por defecto
                    //jTextField26.setText(null);
                    jTextField22.setText(null);
                    jTextField11.setText(null);
                    jDateChooser5.setDate(null);
                    jTextField23.setText(null);
                    jTextField21.setText(null);
                    jTextArea6.setText(null);
                    jTextField24.setText(null);
                    jComboBox9.setSelectedIndex(0);
                    jComboBox14.removeAllItems();
                    jComboBox11.setSelectedIndex(0);
                    jComboBox12.setSelectedIndex(0);
                    jTextField20.setText(null);
                    jComboBox13.setSelectedIndex(0);
                    jComboBox10.removeAllItems();
                    jTextField25.setText(null);

                } catch(Exception e){
                    e.printStackTrace();
                }
               
           }
              
       }

       

    }//GEN-LAST:event_jButton6ActionPerformed

    private void jTextField26ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField26ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextField26ActionPerformed

    private void jButton15ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton15ActionPerformed
        // TODO add your handling code here:

        jPanel7.setVisible(false);
        jPanel3.setVisible(true);

        // Dejar los campos como estaban por defecto
        jTextField26.setText(null);
        jTextField22.setText(null);
        jTextField11.setText(null);
        jDateChooser5.setDate(null);
        jTextField23.setText(null);
        jTextField21.setText(null);
        jTextArea6.setText(null);
        jTextField24.setText(null);
        jComboBox9.setSelectedIndex(0);
        jComboBox14.removeAllItems();
        jComboBox11.setSelectedIndex(0);
        jComboBox12.setSelectedIndex(0);
        jTextField20.setText(null);
        jComboBox13.setSelectedIndex(0);
        jComboBox10.removeAllItems();
        jTextField25.setText(null);
    }//GEN-LAST:event_jButton15ActionPerformed

    private void jLabel82MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel82MouseClicked
        // TODO add your handling code here:
        jPanel8.setVisible(false);

        if (panel10) {
            jPanel10.setVisible(true);
            panel10 = false;
        }
        else
            jPanel3.setVisible(true);

        //Dejar los campos limpios
        jTextField10.setText(null);
        jTextArea7.setText(null);
        jTextField28.setText(null);
        jTextField29.setText(null);
        jTextField30.setText(null);
        jComboBox16.setSelectedIndex(0);

    }//GEN-LAST:event_jLabel82MouseClicked

    private void jLabel82MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel82MouseEntered
        // TODO add your handling code here:
        jLabel82.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
    }//GEN-LAST:event_jLabel82MouseEntered

    private void jLabel83MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel83MouseClicked
        // TODO add your handling code here:
        jPanel8.setVisible(false);
        jPanel1.setVisible(true);

        //Dejar los campos limpios
        jTextField10.setText(null);
        jTextArea7.setText(null);
        jTextField28.setText(null);
        jTextField29.setText(null);
        jTextField30.setText(null);
        jComboBox16.setSelectedIndex(0);
    }//GEN-LAST:event_jLabel83MouseClicked

    private void jLabel83MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel83MouseEntered
        // TODO add your handling code here:
        jLabel83.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
    }//GEN-LAST:event_jLabel83MouseEntered

    private void jButton16ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton16ActionPerformed
        // TODO add your handling code here:

        boolean seleccion = false;

        for (int i=0; i<jTable2.getRowCount();i++)
            if(jTable2.isRowSelected(i))
                seleccion = true;

        if (seleccion) {
            jPanel3.setVisible(false);
            jPanel8.setVisible(true);
            jTable2.clearSelection();

            jTextArea4.setText(null);
            
        }
        else
            JOptionPane.showMessageDialog(this,"Debe seleccionar un proyecto de la lista", "Aviso", 2);
    }//GEN-LAST:event_jButton16ActionPerformed

    private void jComboBox16ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBox16ActionPerformed
        // TODO add your handling code here:

        if (jComboBox16.getSelectedItem().toString().equals("Otro")) {
            jTextField28.setVisible(true);
        }
        if ( (jTextField28.isVisible()) & (jComboBox16.getSelectedItem().toString().equals("Otro") == false) ) {
            jTextField28.setText(null);
            jTextField28.setVisible(false);
        }

    }//GEN-LAST:event_jComboBox16ActionPerformed

    private void jButton18ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton18ActionPerformed
        // TODO add your handling code here:

       ServicioJpaController Sctr = new ServicioJpaController();
       List<Servicio> lista = Sctr.findServicioEntities();
       for(Servicio S : lista) {
           if ( Integer.parseInt(jTextField27.getText()) == S.getIdservicio() ) {

               try {

                    S.setProyecto(jTextField10.getText());

                    if (jTextArea7.getText().isEmpty() == false)
                        S.setDescripcion(jTextArea7.getText());

                    if (jComboBox16.getSelectedItem().equals("Otro") == false)
                            S.setCentro(jComboBox16.getSelectedItem().toString());
                        else
                            S.setCentro(jTextField28.getText());

                    S.setCoordinadorproyecto(jTextField29.getText());

                    S.setCoordinadorescuela(jTextField30.getText());

                    Sctr.edit(S);

                    for (int i = 0; i<tabModel2.getRowCount(); i++) {
                        tabModel2.removeRow(i);
                        i--;
                    }

                    List<Servicio> lista1 = Sctr.findServicioEntities();
                    for(Servicio servicio : lista1) {
                        Vector row=new Vector();

                        row.add(servicio.getIdservicio());
                        row.add(servicio.getProyecto());
                        row.add(servicio.getCentro());
                        row.add(servicio.getCoordinadorproyecto());
                        row.add(servicio.getCoordinadorescuela());

                        tabModel2.addRow(row);

                    }

                    jTable2.setModel(tabModel2);

                    for (int i = 0; i<tabModel7.getRowCount(); i++) {
                        tabModel7.removeRow(i);
                        i--;
                    }

                    for(Servicio servicio : lista1) {
                        Vector row=new Vector();

                        row.add(servicio.getIdservicio());
                        row.add(servicio.getProyecto());
                        row.add(servicio.getCentro());

                        tabModel7.addRow(row);

                    }

                    jTable7.setModel(tabModel7);

                    for (int i = 0; i<miModel3.getRowCount(); i++) {
                        miModel3.removeRow(i);
                        i--;
                    }

                    for(Servicio servicio : lista1) {
                        Vector row=new Vector();

                        row.add(servicio.getSeleccion());
                        row.add(servicio.getIdservicio());
                        row.add(servicio.getProyecto());
                        row.add(servicio.getCentro());

                        miModel3.addRow(row);

                    }

                    jTable5.setModel(miModel3);

                    for (int i = 0; i<miModel2.getRowCount(); i++) {
                        miModel2.removeRow(i);
                        i--;
                    }

                    ServicioHasVoluntariadoJpaController SVctr = new ServicioHasVoluntariadoJpaController();
                    List<ServicioHasVoluntariado> lista2 = SVctr.findServicioHasVoluntariadoEntities();
                    for(ServicioHasVoluntariado shv : lista2) {
                        Vector row=new Vector();

                        row.add(shv.getSeleccion());
                        row.add(shv.getVoluntariado().getCedula());
                        row.add(shv.getVoluntariado().getNombre());
                        row.add(shv.getServicio().getIdservicio());
                        row.add(shv.getServicio().getProyecto());

                        miModel2.addRow(row);
                    }

                    jTable6.setModel(miModel2);

                    JOptionPane.showMessageDialog(this,"Se ha modificado los datos del proyecto con éxito", "Información", 1);
                    jPanel8.setVisible(false);
                    jPanel3.setVisible(true);

                    //Dejar los campos limpios
                    jTextField10.setText(null);
                    jTextArea7.setText(null);
                    jTextField28.setText(null);
                    jTextField29.setText(null);
                    jTextField30.setText(null);
                    jComboBox16.setSelectedIndex(0);

                } catch(Exception e){
                    e.printStackTrace();
                }

           }

       }
    }//GEN-LAST:event_jButton18ActionPerformed

    private void jButton19ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton19ActionPerformed
        // TODO add your handling code here:
        jPanel8.setVisible(false);
        jPanel3.setVisible(true);

        //Dejar los campos limpios
        jTextField10.setText(null);
        jTextArea7.setText(null);
        jTextField28.setText(null);
        jTextField29.setText(null);
        jTextField30.setText(null);
        jComboBox16.setSelectedIndex(0);
        
    }//GEN-LAST:event_jButton19ActionPerformed

    private void jLabel101MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel101MouseClicked
        // TODO add your handling code here:

        jPanel9.setVisible(false);

        if (panel10) {
            jPanel10.setVisible(true);
            panel10 = false;
        }
        else
            jPanel3.setVisible(true);

        // Dejar los campos como estaban por defecto

        jTextField31.setText(null);
        jTextField34.setText(null);
        jDateChooser6.setDate(null);
        jDateChooser7.setDate(null);
        jDateChooser8.setDate(null);
        jTextField33.setText(null);
        jTextField34.setText(null);
    }//GEN-LAST:event_jLabel101MouseClicked

    private void jLabel101MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel101MouseEntered
        // TODO add your handling code here:
        jLabel101.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
    }//GEN-LAST:event_jLabel101MouseEntered

    private void jLabel102MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel102MouseClicked
        // TODO add your handling code here:

        jPanel9.setVisible(false);
        jPanel1.setVisible(true);

        // Dejar los campos como estaban por defecto

        jTextField31.setText(null);
        jTextField34.setText(null);
        jDateChooser6.setDate(null);
        jDateChooser7.setDate(null);
        jDateChooser8.setDate(null);
        jTextField33.setText(null);
        jTextField34.setText(null);
    }//GEN-LAST:event_jLabel102MouseClicked

    private void jLabel102MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel102MouseEntered
        // TODO add your handling code here:
        jLabel102.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
    }//GEN-LAST:event_jLabel102MouseEntered

    private void jTextField31ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTextField31ActionPerformed
        // TODO add your handling code here:
    }//GEN-LAST:event_jTextField31ActionPerformed

    private void jButton21ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton21ActionPerformed
        // TODO add your handling code here:

        boolean seleccion = false;

        for (int i=0; i<jTable3.getRowCount();i++)
            if(jTable3.isRowSelected(i))
                seleccion = true;

        if (seleccion) {
            jPanel3.setVisible(false);
            jPanel9.setVisible(true);
            jTable3.clearSelection();

            jLabel27.setText(null);
            jTextArea5.setText(null);

        }
        else
            JOptionPane.showMessageDialog(this,"Debe seleccionar una asignacion de la lista", "Aviso", 2);
    }//GEN-LAST:event_jButton21ActionPerformed

    private void jButton20ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton20ActionPerformed
        // TODO add your handling code here:

        jPanel9.setVisible(false);
        jPanel3.setVisible(true);

        // Dejar los campos como estaban por defecto

        jTextField31.setText(null);
        jTextField34.setText(null);
        jDateChooser6.setDate(null);
        jDateChooser7.setDate(null);
        jDateChooser8.setDate(null);
        jTextField33.setText(null);
        jTextField34.setText(null);
    }//GEN-LAST:event_jButton20ActionPerformed

    private void jButton17ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton17ActionPerformed
        // TODO add your handling code here:

        ServicioHasVoluntariadoJpaController SVctr = new ServicioHasVoluntariadoJpaController();
        List<ServicioHasVoluntariado> lista1 = SVctr.findServicioHasVoluntariadoEntities();
        for(ServicioHasVoluntariado shv: lista1) {
            if( (shv.getVoluntariado().getCedula() == Integer.parseInt(jTextField31.getText()))  & (shv.getServicio().getIdservicio() == Integer.parseInt(jTextField32.getText())) )  {

                try {

                    shv.setFechaplanilla(jDateChooser6.getDate());

                    shv.setFechaini(jDateChooser7.getDate());

                    shv.setFechafin(jDateChooser8.getDate());
                    

                    shv.setHorastotal(Integer.parseInt(jTextField33.getText()));
                    shv.setNumhoras(Integer.parseInt(jTextField34.getText()));

                    SVctr.edit(shv);

                    for (int i = 0; i<tabModel3.getRowCount(); i++) {
                        tabModel3.removeRow(i);
                        i--;
                    }

                    List<ServicioHasVoluntariado> lista2 = SVctr.findServicioHasVoluntariadoEntities();
                    for(ServicioHasVoluntariado sv : lista2) {
                        Vector row=new Vector();

                        SimpleDateFormat formato = new SimpleDateFormat("dd/MM/yyyy");

                        row.add(sv.getVoluntariado().getCedula());
                        row.add(sv.getVoluntariado().getNombre());
                        row.add(sv.getVoluntariado().getApellido());
                        row.add(sv.getServicio().getIdservicio());
                        if(sv.getFechaplanilla() != null)
                            row.add(formato.format(sv.getFechaplanilla()));
                        else
                            row.add(null);

                        row.add(formato.format(sv.getFechaini()));

                        if(sv.getFechafin() != null)
                            row.add(formato.format(sv.getFechafin()));
                        else
                            row.add(null);

                        row.add(sv.getNumhoras());
                        row.add(sv.getHorastotal());

                        tabModel3.addRow(row);
                    }

                    jTable3.setModel(tabModel3);

                    JOptionPane.showMessageDialog(this,"Se ha modificado los datos del servicio asignado con éxito", "Información", 1);
                    jPanel9.setVisible(false);
                    jPanel3.setVisible(true);

                    // Dejar los campos como estaban por defecto

//                    jTextField31.setText(null);
//                    jTextField32.setText(null);
                    jDateChooser6.setDate(null);
                    jDateChooser7.setDate(null);
                    jDateChooser8.setDate(null);
                    jTextField33.setText(null);
                    jTextField34.setText(null);


                } catch(Exception e){
                    e.printStackTrace();
                }
            }
        }        
    }//GEN-LAST:event_jButton17ActionPerformed

    private void jLabel111MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel111MouseClicked
        // TODO add your handling code here:
        jPanel10.setVisible(false);
        jPanel1.setVisible(true);

        jTable8.clearSelection();
        jTable9.clearSelection();
        jTable10.clearSelection();
        jComboBox4.setSelectedIndex(0);
        jTextField19.setText(null);

         //Dejar limpio el panel de consulta de usuario
        jLabel113.setIcon(null);
        jLabel114.setText(null);
        jLabel115.setText(null);
        jLabel116.setText(null);
        jLabel117.setText(null);
        jLabel118.setText(null);
        jLabel119.setText(null);
        jLabel120.setText(null);
        jLabel121.setText(null);
        jLabel122.setText(null);
        jLabel123.setText(null);
        jLabel124.setText(null);
        jLabel125.setText(null);
        jLabel126.setText(null);
        jLabel127.setText(null);
        jLabel131.setIcon(null);
        jTextArea8.setText(null);
        jTextArea9.setText(null);
        jTextArea10.setText(null);

    }//GEN-LAST:event_jLabel111MouseClicked

    private void jLabel111MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel111MouseEntered
        // TODO add your handling code here:
        jLabel111.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
    }//GEN-LAST:event_jLabel111MouseEntered

    private void jTable8MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTable8MouseClicked
        // TODO add your handling code here:

        int fila = jTable8.rowAtPoint(evt.getPoint());
        //int columna = jTable1.columnAtPoint(evt.getPoint());


        //System.out.println("Estos son los puntos:    fila: " + fila + " columna: " + columna);
        //JOptionPane.showMessageDialog(this,"Estos son los puntos:    fila: " + fila + " columna: " + columna + " El valor  es: " + jTable1.getValueAt(fila, columna), "Información", 1);

        SimpleDateFormat formato = new SimpleDateFormat("dd/MM/yyyy");

        VoluntariadoJpaController Vctr = new VoluntariadoJpaController();
        List<Voluntariado> lista = Vctr.findVoluntariadoEntities();
        for(Voluntariado voluntariado : lista) {
            if(voluntariado.getCedula() == Integer.parseInt(jTable8.getValueAt(fila, 0).toString())) {
                jTextArea8.setText(null);
                jLabel113.setIcon(null);

                jLabel118.setText("Cedula:  " + voluntariado.getCedula().toString());
                jTextField15.setText(voluntariado.getCedula().toString());
                jTextField26.setText(voluntariado.getCedula().toString());

                jLabel116.setText("Nombre:   " + voluntariado.getNombre());
                jTextField22.setText(voluntariado.getNombre().toString());

                jLabel115.setText("Apellido:   " + voluntariado.getApellido());
                jTextField11.setText(voluntariado.getApellido().toString());

                jLabel117.setText("Fecha nac:   " + formato.format(voluntariado.getFechanac()));
                jDateChooser5.setDate(voluntariado.getFechanac());

                if (voluntariado.getTelefono() != null) {
                    jLabel114.setText("Teléfono:   " + voluntariado.getTelefono());
                    jTextField21.setText(voluntariado.getTelefono());
                }
                else {
                    jLabel114.setText("Teléfono:");
                    jTextField21.setText(null);
                }

                if (voluntariado.getEmail() != null) {
                    jLabel119.setText("Email:   " + voluntariado.getEmail());
                    jTextField23.setText(voluntariado.getEmail());
                }
                else {
                    jLabel119.setText("Email:");
                    jTextField23.setText(null);
                }

                if (voluntariado.getExpediente() != null) {
                    jLabel123.setText("Expediente:   " + voluntariado.getExpediente());
                    jTextField24.setText(voluntariado.getExpediente().toString());
                }
                else {
                    jLabel123.setText("Expediente:");
                    jTextField24.setText(null);
                }

                if (voluntariado.getFacultad() != null) {
                    jLabel125.setText("Facultad:   " + voluntariado.getFacultad());
                    jComboBox9.setSelectedItem(voluntariado.getFacultad());
                }
                else {
                    jLabel125.setText("Facultad:");
                    jComboBox9.setSelectedIndex(0);
                }

                if (voluntariado.getEscuela() != null) {
                    jLabel124.setText("Escuela:   " + voluntariado.getEscuela());
                    jComboBox14.setSelectedItem(voluntariado.getEscuela());
                }
                else
                    jLabel124.setText("Escuela:");

                if (voluntariado.getSemestre() != null) {
                    jLabel122.setText("Semestre:   " + voluntariado.getSemestre());
                    jComboBox11.setSelectedItem(voluntariado.getSemestre());
                }
                else {
                    jLabel122.setText("Semestre:");
                    jComboBox11.setSelectedIndex(0);
                }

                if (voluntariado.getAnio() != null) {
                    jLabel121.setText("Año:   " + voluntariado.getAnio());
                    jComboBox12.setSelectedItem(voluntariado.getAnio());
                }
                else {
                    jLabel121.setText("Año:");
                    jComboBox12.setSelectedIndex(0);
                }

                if (voluntariado.getTipoestudiante() != null) {
                    jLabel120.setText("Tipo de estudiante:   " + voluntariado.getTipoestudiante());
                    jComboBox13.setSelectedItem(voluntariado.getTipoestudiante());
                }
                else {
                    jLabel120.setText("Tipo de estudiante:");
                    jComboBox13.setSelectedItem(null);
                }

                if (voluntariado.getArea() != null) {
                    jLabel126.setText("Area:   " + voluntariado.getArea());

                    boolean otro = true;
                    for (int i =0; i<jComboBox10.getItemCount(); i++) {
                        if (jComboBox10.getItemAt(i).toString().equals(voluntariado.getArea()))
                            otro = false;
                    }

                    if (otro) {
                        jComboBox10.setSelectedItem("Otro");
                        jTextField25.setText(voluntariado.getArea());
                    }
                    else
                        jComboBox10.setSelectedItem(voluntariado.getArea());
                }
                else
                    jLabel126.setText("Area:");

                
                jTextArea8.setText(voluntariado.getEspecialidad());
                jTextArea6.setText(voluntariado.getEspecialidad());
                
                if (voluntariado.getInteres() == null) {
                    jLabel127.setText("Por responder");
                    jComboBox15.setSelectedItem("Por responder");
                }
                else
                    if (voluntariado.getInteres()) {
                        jLabel127.setText("Si");
                        jComboBox15.setSelectedItem("Si");
                    }
                    else {
                        jLabel127.setText("No");
                        jComboBox15.setSelectedItem("No");
                    }

                //Carga de la imagen
                if (voluntariado.getFoto() != null)
                    try {
                        byte[] img = voluntariado.getFoto();
                        Image imagen = getImage(img, false);

//                      Graphics g = getGraphics();
//                      super.paint(g);
//                      g.drawImage(imagen,0,0, 100, 100, jPanel3);

                        Icon icon = new ImageIcon(imagen);
                        jLabel113.setIcon(icon);

                    } catch (IOException ex) {
                        Logger.getLogger(VentanaPrincipal.class.getName()).log(Level.SEVERE, null, ex);
                    }

            }

        }
    }//GEN-LAST:event_jTable8MouseClicked

    private void jButton22ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton22ActionPerformed
        // TODO add your handling code here:
        boolean seleccion = false;

        for (int i=0; i<jTable8.getRowCount();i++)
            if(jTable8.isRowSelected(i))
                seleccion = true;

        if (seleccion) {
            jPanel10.setVisible(false);
            jPanel6.setVisible(true);
            panel10 = true;
            jTable8.clearSelection();

             //Dejar limpio el panel de consulta de usuario
            jLabel113.setIcon(null);
            jLabel114.setText(null);
            jLabel115.setText(null);
            jLabel116.setText(null);
            jLabel117.setText(null);
            jLabel118.setText(null);
            jLabel119.setText(null);
            jLabel120.setText(null);
            jLabel121.setText(null);
            jLabel122.setText(null);
            jLabel123.setText(null);
            jLabel124.setText(null);
            jLabel125.setText(null);
            jLabel126.setText(null);
            jLabel127.setText(null);
            jTextArea8.setText(null);
        }
        else
            JOptionPane.showMessageDialog(this,"Debe seleccionar un estudiante de la lista", "Aviso", 2);
    }//GEN-LAST:event_jButton22ActionPerformed

    private void jButton23ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton23ActionPerformed
        // TODO add your handling code here:
        boolean seleccion = false;

        for (int i=0; i<jTable8.getRowCount();i++)
            if(jTable8.isRowSelected(i))
                seleccion = true;

        if (seleccion) {
            jPanel10.setVisible(false);
            jPanel7.setVisible(true);
            panel10 = true;
            jTable8.clearSelection();

            //Dejar limpio el panel de consulta de usuario
            jLabel113.setIcon(null);
            jLabel114.setText(null);
            jLabel115.setText(null);
            jLabel116.setText(null);
            jLabel117.setText(null);
            jLabel118.setText(null);
            jLabel119.setText(null);
            jLabel120.setText(null);
            jLabel121.setText(null);
            jLabel122.setText(null);
            jLabel123.setText(null);
            jLabel124.setText(null);
            jLabel125.setText(null);
            jLabel126.setText(null);
            jLabel127.setText(null);
            jTextArea8.setText(null);

        }
        else
            JOptionPane.showMessageDialog(this,"Debe seleccionar un estudiante de la lista", "Aviso", 2);
    }//GEN-LAST:event_jButton23ActionPerformed

    private void jTable9MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTable9MouseClicked
        // TODO add your handling code here:
        int fila = jTable9.rowAtPoint(evt.getPoint());
        jTextArea9.setText(null);

        ServicioJpaController Sctr = new ServicioJpaController();
        List<Servicio> lista = Sctr.findServicioEntities();
        for(Servicio servicio : lista) {
            if(servicio.getIdservicio() == Integer.parseInt(jTable2.getValueAt(fila, 0).toString())) {
                jTextArea9.setText(servicio.getDescripcion());

                jTextField27.setText(servicio.getIdservicio().toString());

                jTextField10.setText(servicio.getProyecto());

                jTextArea7.setText(servicio.getDescripcion());

                boolean otro = true;
                for (int i =0; i<jComboBox16.getItemCount(); i++) {
                        if (jComboBox16.getItemAt(i).toString().equals(servicio.getCentro()))
                            otro = false;
                    }

                    if (otro) {
                        jComboBox16.setSelectedItem("Otro");
                        jTextField28.setText(servicio.getCentro());
                    }
                    else
                        jComboBox10.setSelectedItem(servicio.getCentro());

                jTextField29.setText(servicio.getCoordinadorproyecto());
                jTextField30.setText(servicio.getCoordinadorescuela());

            }
        }
    }//GEN-LAST:event_jTable9MouseClicked

    private void jButton24ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton24ActionPerformed
        // TODO add your handling code here:

        boolean seleccion = false;

        for (int i=0; i<jTable9.getRowCount();i++)
            if(jTable9.isRowSelected(i))
                seleccion = true;

        if (seleccion) {
            jPanel10.setVisible(false);
            panel10 = true;
            jPanel8.setVisible(true);
            jTable9.clearSelection();

            jTextArea9.setText(null);

        }
        else
            JOptionPane.showMessageDialog(this,"Debe seleccionar un proyecto de la lista", "Aviso", 2);
    }//GEN-LAST:event_jButton24ActionPerformed

    private void jTable10MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTable10MouseClicked
        // TODO add your handling code here:

        int fila = jTable10.rowAtPoint(evt.getPoint());
        jTextArea10.setText(null);
        jLabel131.setText(null);

        ServicioHasVoluntariadoJpaController SVctr = new ServicioHasVoluntariadoJpaController();
        ServicioJpaController Sctr = new ServicioJpaController();
        List<Servicio> lista = Sctr.findServicioEntities();
        for(Servicio servicio : lista) {
            if(servicio.getIdservicio() == Integer.parseInt(jTable3.getValueAt(fila, 3).toString())) {
                jLabel131.setText("Título: " + servicio.getProyecto());
                jTextArea10.setText(servicio.getDescripcion());
            }
        }

        List<ServicioHasVoluntariado> lista1 = SVctr.findServicioHasVoluntariadoEntities();
        for(ServicioHasVoluntariado shv: lista1) {
            if(shv.getVoluntariado().getCedula() == Integer.parseInt(jTable3.getValueAt(fila, 0).toString()) & shv.getServicio().getIdservicio() == Integer.parseInt(jTable3.getValueAt(fila, 3).toString())) {
                jTextField31.setText(shv.getVoluntariado().getCedula().toString());

                jTextField32.setText(shv.getServicio().getIdservicio().toString());

                if(shv.getFechaplanilla() != null) {
                    jDateChooser6.setDate(shv.getFechaplanilla());
                }
                else
                    jDateChooser6.setDate(null);

                jDateChooser7.setDate(shv.getFechaini());

                if(shv.getFechafin() != null) {
                    jDateChooser8.setDate(shv.getFechafin());
                }
                else
                    jDateChooser8.setDate(null);

                Integer num;
                num = shv.getHorastotal();
                jTextField33.setText(num.toString());

                jTextField34.setText(shv.getNumhoras().toString());

            }
        }
    }//GEN-LAST:event_jTable10MouseClicked

    private void jButton25ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton25ActionPerformed
        // TODO add your handling code here:
        boolean seleccion = false;

        for (int i=0; i<jTable10.getRowCount();i++)
            if(jTable10.isRowSelected(i))
                seleccion = true;

        if (seleccion) {
            jPanel10.setVisible(false);
            panel10 = true;
            jPanel9.setVisible(true);
            jTable10.clearSelection();

            jLabel131.setText(null);
            jTextArea10.setText(null);

        }
        else
            JOptionPane.showMessageDialog(this,"Debe seleccionar una asignacion de la lista", "Aviso", 2);
    }//GEN-LAST:event_jButton25ActionPerformed

    private void jButton10ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton10ActionPerformed
        // TODO add your handling code here:

        boolean existe = false;

        for (int i = 0; i<tabModel8.getRowCount(); i++) {
            tabModel8.removeRow(i);
            i--;
        }

        for (int i = 0; i<tabModel9.getRowCount(); i++) {
            tabModel9.removeRow(i);
            i--;
        }

        for (int i = 0; i<tabModel10.getRowCount(); i++) {
            tabModel10.removeRow(i);
            i--;
        }

        if (jComboBox4.getSelectedItem().equals("Cédula")) {

            VoluntariadoJpaController Vctr = new VoluntariadoJpaController();

            List<Voluntariado> lista = Vctr.findVoluntariadoEntities();
            for(Voluntariado voluntariado : lista)
                if ( Integer.parseInt(jTextField19.getText()) == voluntariado.getCedula() )
                    existe = true;

            if (existe) {

                jPanel1.setVisible(false);
                jPanel10.setVisible(true);

                jTabbedPane4.setSelectedIndex(0);

                for(Voluntariado voluntariado : lista) {
                    if ( Integer.parseInt(jTextField19.getText()) == voluntariado.getCedula() ) {
                        Vector row=new Vector();

                        row.add(voluntariado.getCedula());
                        row.add(voluntariado.getNombre());
                        row.add(voluntariado.getApellido());

                        tabModel8.addRow(row);
                        jTable8.setModel(tabModel8);
                    }
                }

                ServicioHasVoluntariadoJpaController SVctr = new ServicioHasVoluntariadoJpaController();

                List<ServicioHasVoluntariado> lista1 = SVctr.findServicioHasVoluntariadoEntities();
                for(ServicioHasVoluntariado shv: lista1) {
                    if (Integer.parseInt(jTextField19.getText()) == shv.getVoluntariado().getCedula()) {

                        Vector row = new Vector();

                        row.add(shv.getServicio().getIdservicio());
                        row.add(shv.getServicio().getProyecto());
                        row.add(shv.getServicio().getCentro());
                        row.add(shv.getServicio().getCoordinadorproyecto());
                        row.add(shv.getServicio().getCoordinadorescuela());

                        tabModel9.addRow(row);
                    }
                }
                jTable9.setModel(tabModel9);

                for(ServicioHasVoluntariado shv : lista1) {
                     if ( Integer.parseInt(jTextField19.getText()) == shv.getVoluntariado().getCedula() ) {
                        Vector row=new Vector();

                        SimpleDateFormat formato = new SimpleDateFormat("dd/MM/yyyy");

                        row.add(shv.getVoluntariado().getCedula());
                        row.add(shv.getVoluntariado().getNombre());
                        row.add(shv.getVoluntariado().getApellido());
                        row.add(shv.getServicio().getIdservicio());

                        if(shv.getFechaplanilla() != null)
                            row.add(formato.format(shv.getFechaplanilla()));
                        else
                            row.add(null);

                        row.add(formato.format(shv.getFechaini()));

                        if(shv.getFechafin() != null)
                            row.add(formato.format(shv.getFechafin()));
                        else
                            row.add(null);

                        row.add(shv.getNumhoras());
                        row.add(shv.getHorastotal());

                        tabModel10.addRow(row);
                     }
                }
                jTable10.setModel(tabModel10);
            }
            else
                JOptionPane.showMessageDialog(this,"La cédula introducida no se encuentra registrado en el sistema", "Aviso", 2);
        }

        if (jComboBox4.getSelectedItem().equals("Num proyecto")) {

            ServicioJpaController Sctr = new ServicioJpaController();

            List<Servicio> lista = Sctr.findServicioEntities();
            for(Servicio servicio : lista)
                if ( Integer.parseInt(jTextField19.getText()) == servicio.getIdservicio() )
                    existe = true;

            if (existe) {

                jPanel1.setVisible(false);
                jPanel10.setVisible(true);

                jTabbedPane4.setSelectedIndex(1);

                for(Servicio servicio : lista) {
                    if ( Integer.parseInt(jTextField19.getText()) == servicio.getIdservicio() ) {
                        Vector row = new Vector();

                        row.add(servicio.getIdservicio());
                        row.add(servicio.getProyecto());
                        row.add(servicio.getCentro());
                        row.add(servicio.getCoordinadorproyecto());
                        row.add(servicio.getCoordinadorescuela());

                        tabModel9.addRow(row);
                        jTable9.setModel(tabModel9);
                    }
                }

                ServicioHasVoluntariadoJpaController SVctr = new ServicioHasVoluntariadoJpaController();

                List<ServicioHasVoluntariado> lista1 = SVctr.findServicioHasVoluntariadoEntities();
                for(ServicioHasVoluntariado shv: lista1) {
                    if ( Integer.parseInt(jTextField19.getText()) == shv.getServicio().getIdservicio() ) {
                        Vector row=new Vector();

                        row.add(shv.getVoluntariado().getCedula());
                        row.add(shv.getVoluntariado().getNombre());
                        row.add(shv.getVoluntariado().getApellido());

                        tabModel8.addRow(row);
                        
                    }
                }
                jTable8.setModel(tabModel8);
                
                for(ServicioHasVoluntariado shv : lista1) {
                     if ( Integer.parseInt(jTextField19.getText()) == shv.getServicio().getIdservicio() ) {
                        Vector row=new Vector();

                        SimpleDateFormat formato = new SimpleDateFormat("dd/MM/yyyy");

                        row.add(shv.getVoluntariado().getCedula());
                        row.add(shv.getVoluntariado().getNombre());
                        row.add(shv.getVoluntariado().getApellido());
                        row.add(shv.getServicio().getIdservicio());

                        if(shv.getFechaplanilla() != null)
                            row.add(formato.format(shv.getFechaplanilla()));
                        else
                            row.add(null);

                        row.add(formato.format(shv.getFechaini()));

                        if(shv.getFechafin() != null)
                            row.add(formato.format(shv.getFechafin()));
                        else
                            row.add(null);

                        row.add(shv.getNumhoras());
                        row.add(shv.getHorastotal());

                        tabModel10.addRow(row);
                     }
                }
                jTable10.setModel(tabModel10);
            }
            else
                JOptionPane.showMessageDialog(this,"El número de proyecto introducido no se encuentra registrado en el sistema", "Aviso", 2);
        }

        if (jComboBox4.getSelectedItem().equals("Expediente")) {

            VoluntariadoJpaController Vctr = new VoluntariadoJpaController();

            List<Voluntariado> lista = Vctr.findVoluntariadoEntities();
            for(Voluntariado voluntariado : lista)
                if(voluntariado.getExpediente() != null)
                    if ( Integer.parseInt(jTextField19.getText()) == voluntariado.getExpediente() )
                        existe = true;

            if (existe) {

                jPanel1.setVisible(false);
                jPanel10.setVisible(true);

                jTabbedPane4.setSelectedIndex(0);

                for(Voluntariado voluntariado : lista) {
                    if ( Integer.parseInt(jTextField19.getText()) == voluntariado.getExpediente() ) {
                        Vector row=new Vector();

                        row.add(voluntariado.getCedula());
                        row.add(voluntariado.getNombre());
                        row.add(voluntariado.getApellido());

                        tabModel8.addRow(row);
                        jTable8.setModel(tabModel8);
                    }
                }

                ServicioHasVoluntariadoJpaController SVctr = new ServicioHasVoluntariadoJpaController();

                List<ServicioHasVoluntariado> lista1 = SVctr.findServicioHasVoluntariadoEntities();
                for(ServicioHasVoluntariado shv: lista1) {
                    if (Integer.parseInt(jTextField19.getText()) == shv.getVoluntariado().getExpediente()) {

                        Vector row = new Vector();

                        row.add(shv.getServicio().getIdservicio());
                        row.add(shv.getServicio().getProyecto());
                        row.add(shv.getServicio().getCentro());
                        row.add(shv.getServicio().getCoordinadorproyecto());
                        row.add(shv.getServicio().getCoordinadorescuela());

                        tabModel9.addRow(row);
                    }
                }
                jTable9.setModel(tabModel9);

                for(ServicioHasVoluntariado shv : lista1) {
                     if ( Integer.parseInt(jTextField19.getText()) == shv.getVoluntariado().getExpediente() ) {
                        Vector row=new Vector();

                        SimpleDateFormat formato = new SimpleDateFormat("dd/MM/yyyy");

                        row.add(shv.getVoluntariado().getCedula());
                        row.add(shv.getVoluntariado().getNombre());
                        row.add(shv.getVoluntariado().getApellido());
                        row.add(shv.getServicio().getIdservicio());

                        if(shv.getFechaplanilla() != null)
                            row.add(formato.format(shv.getFechaplanilla()));
                        else
                            row.add(null);

                        row.add(formato.format(shv.getFechaini()));

                        if(shv.getFechafin() != null)
                            row.add(formato.format(shv.getFechafin()));
                        else
                            row.add(null);

                        row.add(shv.getNumhoras());
                        row.add(shv.getHorastotal());

                        tabModel10.addRow(row);
                     }
                }
                jTable10.setModel(tabModel10);
            }
            else
                JOptionPane.showMessageDialog(this,"El expediente introducido no se encuentra registrado en el sistema", "Aviso", 2);
        }

        if (jComboBox4.getSelectedItem().equals("Carrera")) {

            VoluntariadoJpaController Vctr = new VoluntariadoJpaController();

            List<Voluntariado> lista = Vctr.findVoluntariadoEntities();
            for(Voluntariado voluntariado : lista)
                if ( jComboBox17.getSelectedItem().equals(voluntariado.getEscuela()) )
                    existe = true;

            if (existe) {

                jPanel1.setVisible(false);
                jPanel10.setVisible(true);

                jTabbedPane4.setSelectedIndex(0);

                for(Voluntariado voluntariado : lista) {
                    if ( jComboBox17.getSelectedItem().equals(voluntariado.getEscuela()) ) {
                        Vector row=new Vector();

                        row.add(voluntariado.getCedula());
                        row.add(voluntariado.getNombre());
                        row.add(voluntariado.getApellido());

                        tabModel8.addRow(row);
                    }
                }
                jTable8.setModel(tabModel8);

                ServicioHasVoluntariadoJpaController SVctr = new ServicioHasVoluntariadoJpaController();
                boolean exist;

                List<ServicioHasVoluntariado> lista1 = SVctr.findServicioHasVoluntariadoEntities();
                for(ServicioHasVoluntariado shv: lista1) {
                    if (jComboBox17.getSelectedItem().equals(shv.getVoluntariado().getEscuela())) {

                        Vector row = new Vector();
                        exist = false;

                        for(int i=0; i<tabModel9.getRowCount(); i++)
                            if(shv.getServicio().getIdservicio() == tabModel9.getValueAt(i, 0))
                                exist = true;

                        if(exist == false) {

                            row.add(shv.getServicio().getIdservicio());
                            row.add(shv.getServicio().getProyecto());
                            row.add(shv.getServicio().getCentro());
                            row.add(shv.getServicio().getCoordinadorproyecto());
                            row.add(shv.getServicio().getCoordinadorescuela());

                            tabModel9.addRow(row);
                        }
                    }
                }
                jTable9.setModel(tabModel9);

                for(ServicioHasVoluntariado shv : lista1) {
                     if ( jComboBox17.getSelectedItem().equals(shv.getVoluntariado().getEscuela()) ) {
                        Vector row=new Vector();

                        SimpleDateFormat formato = new SimpleDateFormat("dd/MM/yyyy");

                        row.add(shv.getVoluntariado().getCedula());
                        row.add(shv.getVoluntariado().getNombre());
                        row.add(shv.getVoluntariado().getApellido());
                        row.add(shv.getServicio().getIdservicio());

                        if(shv.getFechaplanilla() != null)
                            row.add(formato.format(shv.getFechaplanilla()));
                        else
                            row.add(null);

                        row.add(formato.format(shv.getFechaini()));

                        if(shv.getFechafin() != null)
                            row.add(formato.format(shv.getFechafin()));
                        else
                            row.add(null);

                        row.add(shv.getNumhoras());
                        row.add(shv.getHorastotal());

                        tabModel10.addRow(row);
                     }
                }
                jTable10.setModel(tabModel10);
            }
            else
                JOptionPane.showMessageDialog(this,"La carrera seleccionada no se asocia a ningún estudiante registrado en el sistema", "Aviso", 2);
        }

        if (jComboBox4.getSelectedItem().equals("Año")) {

            ServicioHasVoluntariadoJpaController SVctr = new ServicioHasVoluntariadoJpaController();
            ServicioJpaController Sctr = new ServicioJpaController();

            SimpleDateFormat formato1 = new SimpleDateFormat("yyyy");

            List<ServicioHasVoluntariado> lista = SVctr.findServicioHasVoluntariadoEntities();
            for(ServicioHasVoluntariado shv : lista)
                if ( Integer.parseInt(jTextField19.getText()) == Integer.parseInt(formato1.format(shv.getFechaini())) )
                    existe = true;

            if (existe) {

                jPanel1.setVisible(false);
                jPanel10.setVisible(true);

                jTabbedPane4.setSelectedIndex(2);

                for(ServicioHasVoluntariado shv : lista) {
                     if ( Integer.parseInt(jTextField19.getText()) == Integer.parseInt(formato1.format(shv.getFechaini())) ) {
                        Vector row=new Vector();

                        SimpleDateFormat formato = new SimpleDateFormat("dd/MM/yyyy");

                        row.add(shv.getVoluntariado().getCedula());
                        row.add(shv.getVoluntariado().getNombre());
                        row.add(shv.getVoluntariado().getApellido());
                        row.add(shv.getServicio().getIdservicio());

                        if(shv.getFechaplanilla() != null)
                            row.add(formato.format(shv.getFechaplanilla()));
                        else
                            row.add(null);

                        row.add(formato.format(shv.getFechaini()));

                        if(shv.getFechafin() != null)
                            row.add(formato.format(shv.getFechafin()));
                        else
                            row.add(null);

                        row.add(shv.getNumhoras());
                        row.add(shv.getHorastotal());

                        tabModel10.addRow(row);
                     }
                }
                jTable10.setModel(tabModel10);

                boolean exist;

                for(ServicioHasVoluntariado shv : lista) {
                    if ( Integer.parseInt(jTextField19.getText()) == Integer.parseInt(formato1.format(shv.getFechaini())) ) {
                        Vector row = new Vector();

                        exist = false;

                        for(int i=0; i<tabModel9.getRowCount(); i++)
                            if(shv.getServicio().getIdservicio() == tabModel9.getValueAt(i, 0))
                                exist = true;

                        if(exist == false) {

                            row.add(shv.getServicio().getIdservicio());
                            row.add(shv.getServicio().getProyecto());
                            row.add(shv.getServicio().getCentro());
                            row.add(shv.getServicio().getCoordinadorproyecto());
                            row.add(shv.getServicio().getCoordinadorescuela());

                            tabModel9.addRow(row);
                        }
                    }
                }
                jTable9.setModel(tabModel9);

                for(ServicioHasVoluntariado shv : lista) {
                    if ( Integer.parseInt(jTextField19.getText()) == Integer.parseInt(formato1.format(shv.getFechaini())) ) {
                        Vector row=new Vector();

                        exist = false;

                        for(int i=0; i<tabModel8.getRowCount(); i++)
                            if(shv.getVoluntariado().getCedula() == tabModel8.getValueAt(i, 0))
                                exist = true;

                        if(exist == false) {

                            row.add(shv.getVoluntariado().getCedula());
                            row.add(shv.getVoluntariado().getNombre());
                            row.add(shv.getVoluntariado().getApellido());

                            tabModel8.addRow(row);
                        }

                    }
                }
                jTable8.setModel(tabModel8);


            }
            else
                JOptionPane.showMessageDialog(this,"El año introducido no se asocia a ningún proyecto registrado en el sistema", "Aviso", 2);
        }

         if (jComboBox4.getSelectedItem().equals("Centro")) {

            ServicioJpaController Sctr = new ServicioJpaController();

            List<Servicio> lista = Sctr.findServicioEntities();
            for(Servicio servicio : lista)
                if ( jComboBox17.getSelectedItem().equals(servicio.getCentro()) )
                    existe = true;

            if (existe) {

                jPanel1.setVisible(false);
                jPanel10.setVisible(true);

                jTabbedPane4.setSelectedIndex(1);

                for(Servicio servicio : lista) {
                    if ( jComboBox17.getSelectedItem().equals(servicio.getCentro()) ) {
                        Vector row = new Vector();

                        row.add(servicio.getIdservicio());
                        row.add(servicio.getProyecto());
                        row.add(servicio.getCentro());
                        row.add(servicio.getCoordinadorproyecto());
                        row.add(servicio.getCoordinadorescuela());

                        tabModel9.addRow(row);
                    }
                }
                jTable9.setModel(tabModel9);

                ServicioHasVoluntariadoJpaController SVctr = new ServicioHasVoluntariadoJpaController();
                boolean exist;

                List<ServicioHasVoluntariado> lista1 = SVctr.findServicioHasVoluntariadoEntities();
                for(ServicioHasVoluntariado shv: lista1) {
                    if (jComboBox17.getSelectedItem().equals(shv.getServicio().getCentro()) ) {
                        Vector row=new Vector();

                        exist = false;

                        for(int i=0; i<tabModel8.getRowCount(); i++)
                            if(shv.getVoluntariado().getCedula() == tabModel8.getValueAt(i, 0))
                                exist = true;

                        if(exist == false) {

                            row.add(shv.getVoluntariado().getCedula());
                            row.add(shv.getVoluntariado().getNombre());
                            row.add(shv.getVoluntariado().getApellido());

                            tabModel8.addRow(row);
                        }

                    }
                }
                jTable8.setModel(tabModel8);

                for(ServicioHasVoluntariado shv : lista1) {
                     if ( jComboBox17.getSelectedItem().equals(shv.getServicio().getCentro()) ) {
                        Vector row=new Vector();

                        SimpleDateFormat formato = new SimpleDateFormat("dd/MM/yyyy");

                        row.add(shv.getVoluntariado().getCedula());
                        row.add(shv.getVoluntariado().getNombre());
                        row.add(shv.getVoluntariado().getApellido());
                        row.add(shv.getServicio().getIdservicio());

                        if(shv.getFechaplanilla() != null)
                            row.add(formato.format(shv.getFechaplanilla()));
                        else
                            row.add(null);

                        row.add(formato.format(shv.getFechaini()));

                        if(shv.getFechafin() != null)
                            row.add(formato.format(shv.getFechafin()));
                        else
                            row.add(null);

                        row.add(shv.getNumhoras());
                        row.add(shv.getHorastotal());

                        tabModel10.addRow(row);
                     }
                }
                jTable10.setModel(tabModel10);
            }
            else
                JOptionPane.showMessageDialog(this,"El centro introducido no se encuentra registrado en el sistema", "Aviso", 2);
        }

        if (jComboBox4.getSelectedItem().equals("Coordinador")) {

            ServicioJpaController Sctr = new ServicioJpaController();

            List<Servicio> lista = Sctr.findServicioEntities();
            for(Servicio servicio : lista)
                if ( jTextField19.getText().equals(servicio.getCoordinadorproyecto()) )
                    existe = true;

            if (existe) {

                jPanel1.setVisible(false);
                jPanel10.setVisible(true);

                jTabbedPane4.setSelectedIndex(1);

                for(Servicio servicio : lista) {
                    if ( jTextField19.getText().equals(servicio.getCoordinadorproyecto()) ) {
                        Vector row = new Vector();

                        row.add(servicio.getIdservicio());
                        row.add(servicio.getProyecto());
                        row.add(servicio.getCentro());
                        row.add(servicio.getCoordinadorproyecto());
                        row.add(servicio.getCoordinadorescuela());

                        tabModel9.addRow(row);
                        jTable9.setModel(tabModel9);
                    }
                }

                ServicioHasVoluntariadoJpaController SVctr = new ServicioHasVoluntariadoJpaController();
                boolean exist;

                List<ServicioHasVoluntariado> lista1 = SVctr.findServicioHasVoluntariadoEntities();
                for(ServicioHasVoluntariado shv: lista1) {
                    if ( jTextField19.getText().equals(shv.getServicio().getCoordinadorproyecto()) ) {
                        Vector row=new Vector();
                        exist = false;

                        for(int i=0; i<tabModel8.getRowCount(); i++)
                            if(shv.getVoluntariado().getCedula() == tabModel8.getValueAt(i, 0))
                                exist = true;

                        if(exist == false) {
                            row.add(shv.getVoluntariado().getCedula());
                            row.add(shv.getVoluntariado().getNombre());
                            row.add(shv.getVoluntariado().getApellido());

                            tabModel8.addRow(row);
                        }

                    }
                }
                jTable8.setModel(tabModel8);

                for(ServicioHasVoluntariado shv : lista1) {
                     if ( jTextField19.getText().equals(shv.getServicio().getCoordinadorproyecto()) ) {
                        Vector row=new Vector();

                        SimpleDateFormat formato = new SimpleDateFormat("dd/MM/yyyy");

                        row.add(shv.getVoluntariado().getCedula());
                        row.add(shv.getVoluntariado().getNombre());
                        row.add(shv.getVoluntariado().getApellido());
                        row.add(shv.getServicio().getIdservicio());

                        if(shv.getFechaplanilla() != null)
                            row.add(formato.format(shv.getFechaplanilla()));
                        else
                            row.add(null);

                        row.add(formato.format(shv.getFechaini()));

                        if(shv.getFechafin() != null)
                            row.add(formato.format(shv.getFechafin()));
                        else
                            row.add(null);

                        row.add(shv.getNumhoras());
                        row.add(shv.getHorastotal());

                        tabModel10.addRow(row);
                     }
                }
                jTable10.setModel(tabModel10);
            }
            else
                JOptionPane.showMessageDialog(this,"El coordinador introducido no se encuentra asociado a ningún proyecto registrado en el sistema", "Aviso", 2);
        }

        if (jComboBox4.getSelectedItem().equals("Voluntariado") || jComboBox4.getSelectedItem().equals("Ley de Servicio Comunitario") || jComboBox4.getSelectedItem().equals("Cátedra")) {

            VoluntariadoJpaController Vctr = new VoluntariadoJpaController();

            List<Voluntariado> lista = Vctr.findVoluntariadoEntities();
            for(Voluntariado voluntariado : lista)
                if ( jComboBox4.getSelectedItem().equals(voluntariado.getTipoestudiante()) & jComboBox17.getSelectedItem().equals(voluntariado.getArea()) )
                    existe = true;

            if (existe) {

                jPanel1.setVisible(false);
                jPanel10.setVisible(true);

                jTabbedPane4.setSelectedIndex(0);

                for(Voluntariado voluntariado : lista) {
                    if ( jComboBox4.getSelectedItem().equals(voluntariado.getTipoestudiante()) & jComboBox17.getSelectedItem().equals(voluntariado.getArea()) ) {
                        Vector row=new Vector();

                        row.add(voluntariado.getCedula());
                        row.add(voluntariado.getNombre());
                        row.add(voluntariado.getApellido());

                        tabModel8.addRow(row);
                    }
                }
                jTable8.setModel(tabModel8);

                ServicioHasVoluntariadoJpaController SVctr = new ServicioHasVoluntariadoJpaController();
                boolean exist;

                List<ServicioHasVoluntariado> lista1 = SVctr.findServicioHasVoluntariadoEntities();
                for(ServicioHasVoluntariado shv: lista1) {
                    if (jComboBox4.getSelectedItem().equals(shv.getVoluntariado().getTipoestudiante()) & jComboBox17.getSelectedItem().equals(shv.getVoluntariado().getArea())) {

                        Vector row = new Vector();
                        exist = false;

                        for(int i=0; i<tabModel9.getRowCount(); i++)
                            if(shv.getServicio().getIdservicio() == tabModel9.getValueAt(i, 0))
                                exist = true;

                        if(exist == false) {

                            row.add(shv.getServicio().getIdservicio());
                            row.add(shv.getServicio().getProyecto());
                            row.add(shv.getServicio().getCentro());
                            row.add(shv.getServicio().getCoordinadorproyecto());
                            row.add(shv.getServicio().getCoordinadorescuela());

                            tabModel9.addRow(row);
                        }
                    }
                }
                jTable9.setModel(tabModel9);

                for(ServicioHasVoluntariado shv : lista1) {
                     if ( jComboBox4.getSelectedItem().equals(shv.getVoluntariado().getTipoestudiante()) & jComboBox17.getSelectedItem().equals(shv.getVoluntariado().getArea()) ) {
                        Vector row=new Vector();

                        SimpleDateFormat formato = new SimpleDateFormat("dd/MM/yyyy");

                        row.add(shv.getVoluntariado().getCedula());
                        row.add(shv.getVoluntariado().getNombre());
                        row.add(shv.getVoluntariado().getApellido());
                        row.add(shv.getServicio().getIdservicio());

                        if(shv.getFechaplanilla() != null)
                            row.add(formato.format(shv.getFechaplanilla()));
                        else
                            row.add(null);

                        row.add(formato.format(shv.getFechaini()));

                        if(shv.getFechafin() != null)
                            row.add(formato.format(shv.getFechafin()));
                        else
                            row.add(null);

                        row.add(shv.getNumhoras());
                        row.add(shv.getHorastotal());

                        tabModel10.addRow(row);
                     }
                }
                jTable10.setModel(tabModel10);
            }
            else
                JOptionPane.showMessageDialog(this,"El tipo de estudiante seleccionado no se asocia a ningún estudiante registrado en el sistema", "Aviso", 2);
        }



        

    }//GEN-LAST:event_jButton10ActionPerformed

    private void jComboBox4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBox4ActionPerformed
        // TODO add your handling code here:

        if (jComboBox4.getSelectedIndex() == 5) {
            jTextField19.setVisible(false);
            jTextField19.setText(null);
            jComboBox17.setVisible(true);
            jComboBox17.removeAllItems();

            jComboBox17.addItem("UCAB Proyeccion a la Comninidad");
            jComboBox17.addItem("LM Olaso");
            jComboBox17.addItem("Canaima");
            jComboBox17.addItem("Redes");
            jComboBox17.addItem("Casa de los muchachos");
            jComboBox17.addItem("Los Naranjos");
            jComboBox17.addItem("17 de Diciembre");
            jComboBox17.addItem("La Creacion");
            jComboBox17.addItem("Felipe Fermin Paul");
            jComboBox17.addItem("Escuela Tecnica San Jose Obrero");
            jComboBox17.addItem("San Martin de Porres");
          
            ServicioJpaController Sctr = new ServicioJpaController();
            boolean existe;

            List<Servicio> lista = Sctr.findServicioEntities();
            for(Servicio servicio : lista) {
                existe = false;

                for(int i=0; i<jComboBox17.getItemCount(); i++)
                    if(servicio.getCentro().equals(jComboBox17.getItemAt(i)))
                        existe = true;

                if(existe == false)
                    jComboBox17.addItem(servicio.getCentro());
            }
        }
        
        if (jComboBox4.getSelectedIndex() == 3) {
            jTextField19.setVisible(false);
            jTextField19.setText(null);
            jComboBox17.setVisible(true);
            jComboBox17.removeAllItems();

            jComboBox17.addItem("Administración y Contaduría");
            jComboBox17.addItem("Economía");
            jComboBox17.addItem("Ciencias Sociales");
            jComboBox17.addItem("Derecho");
            jComboBox17.addItem("Letras");
            jComboBox17.addItem("Psicología");
            jComboBox17.addItem("Comunicación Social");
            jComboBox17.addItem("Educación");
            jComboBox17.addItem("Filosofía");
            jComboBox17.addItem("Informática");
            jComboBox17.addItem("Telecomunicaciones");
            jComboBox17.addItem("Industrial");
            jComboBox17.addItem("Civil");
            jComboBox17.addItem("Teología");
        }

        if (jComboBox4.getSelectedIndex() == 7) {
            jTextField19.setVisible(false);
            jTextField19.setText(null);
            jComboBox17.setVisible(true);
            jComboBox17.removeAllItems();

            jComboBox17.addItem("VTEP");
            jComboBox17.addItem("VTAJ");
            jComboBox17.addItem("VEC");
            jComboBox17.addItem("VAC");
            jComboBox17.addItem("VOLET");
            jComboBox17.addItem("Psicología");
            jComboBox17.addItem("Filosofía");
            jComboBox17.addItem("Comunicación Social");
            jComboBox17.addItem("Provocs");
            jComboBox17.addItem("Ecoucab");
            jComboBox17.addItem("Voluntarios de educación");
            jComboBox17.addItem("Medatia");
            jComboBox17.addItem("UM");
            jComboBox17.addItem("Pastoral");
            jComboBox17.addItem("Robótica");
            jComboBox17.addItem("UCABMun");
            jComboBox17.addItem("Voluntarios en real");
            jComboBox17.addItem("Proyecto Social");
            jComboBox17.addItem("Propedéutico verbal");
            jComboBox17.addItem("Propedéutico numérico");

            VoluntariadoJpaController Vctr = new VoluntariadoJpaController();
            boolean existe;

            List<Voluntariado> lista = Vctr.findVoluntariadoEntities();
            for(Voluntariado voluntariado : lista) {
                existe = false;

                if(voluntariado.getTipoestudiante() != null) {
                    for(int i=0; i<jComboBox17.getItemCount(); i++)
                        if(voluntariado.getTipoestudiante().equals("Voluntariado") & voluntariado.getArea().equals(jComboBox17.getItemAt(i)))
                            existe = true;

                    if( (existe == false) & (voluntariado.getTipoestudiante().equals("Voluntariado")) )
                        jComboBox17.addItem(voluntariado.getArea());
                }
            }
        }
        
        if (jComboBox4.getSelectedIndex() == 8) {
            jTextField19.setVisible(false);
            jTextField19.setText(null);
            jComboBox17.setVisible(true);
            jComboBox17.removeAllItems();

            jComboBox17.addItem("Administración y Contaduría");
            jComboBox17.addItem("Economía");
            jComboBox17.addItem("Ciencias Sociales");
            jComboBox17.addItem("Derecho");
            jComboBox17.addItem("Letras");
            jComboBox17.addItem("Psicología");
            jComboBox17.addItem("Comunicación Social");
            jComboBox17.addItem("Educación");
            jComboBox17.addItem("Filosofía");
            jComboBox17.addItem("Informática");
            jComboBox17.addItem("Telecomunicaciones");
            jComboBox17.addItem("Industrial");
            jComboBox17.addItem("Civil");
            jComboBox17.addItem("Teología");
        }

        if (jComboBox4.getSelectedIndex() == 9) {
            jTextField19.setVisible(false);
            jTextField19.setText(null);
            jComboBox17.setVisible(true);
            jComboBox17.removeAllItems();

            jComboBox17.addItem("Humanidades III");
            jComboBox17.addItem("Introducción al estudio del hombre");
            jComboBox17.addItem("Evaluación psicología");
            jComboBox17.addItem("Asesoramiento Psicológico");

            VoluntariadoJpaController Vctr = new VoluntariadoJpaController();
            boolean existe;

            List<Voluntariado> lista = Vctr.findVoluntariadoEntities();
            for(Voluntariado voluntariado : lista) {
                existe = false;

                if(voluntariado.getTipoestudiante() != null) {
                    for(int i=0; i<jComboBox17.getItemCount(); i++)
                        if(voluntariado.getTipoestudiante().equals("Cátedra") & voluntariado.getArea().equals(jComboBox17.getItemAt(i)))
                            existe = true;

                    if( (existe == false) & (voluntariado.getTipoestudiante().equals("Cátedra")) )
                        jComboBox17.addItem(voluntariado.getArea());
                }
            }
        }


        if( (jComboBox4.getSelectedIndex() == 0) || (jComboBox4.getSelectedIndex() == 1) || (jComboBox4.getSelectedIndex() == 2) || (jComboBox4.getSelectedIndex() == 4) || (jComboBox4.getSelectedIndex() == 6) ) {
            jTextField19.setVisible(true);
            jComboBox17.setVisible(false);
            jComboBox17.removeAllItems();
        }

    }//GEN-LAST:event_jComboBox4ActionPerformed

    private void jButton26MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jButton26MouseEntered
        // TODO add your handling code here:
        jButton26.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
        jLabel2.setText("Ver los usuarios postulados");
    }//GEN-LAST:event_jButton26MouseEntered

    private void jLabel133MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel133MouseClicked
        // TODO add your handling code here:
        jPanel12.setVisible(false);
        jPanel1.setVisible(true);
    }//GEN-LAST:event_jLabel133MouseClicked

    private void jLabel133MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel133MouseEntered
        // TODO add your handling code here:
        jLabel133.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
    }//GEN-LAST:event_jLabel133MouseEntered

    private void jButton26ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton26ActionPerformed
        // TODO add your handling code here:
        jPanel1.setVisible(false);
        jPanel12.setVisible(true);
    }//GEN-LAST:event_jButton26ActionPerformed

    private void jTable11MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jTable11MouseClicked
        // TODO add your handling code here:
        int fila = jTable11.rowAtPoint(evt.getPoint());
        jTextArea11.setText(null);

        PostuladoJpaController Pctr = new PostuladoJpaController();
        List<Postulado> lista = Pctr.findPostuladoEntities();
        for(Postulado postulado : lista) {
            if(postulado.getCedula() == Integer.parseInt(jTable11.getValueAt(fila, 1).toString())) {
                jTextArea11.setText(postulado.getEspecialidad());
            }
        }
    }//GEN-LAST:event_jTable11MouseClicked

    private void jButton28ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton28ActionPerformed
        // TODO add your handling code here:
        boolean selecciono = false;

        PostuladoJpaController Pctr = new PostuladoJpaController();

        for(int i=0;i<miModel4.getRowCount();i++) {

            if(miModel4.getValueAt(i, 0) != null) {
                if(miModel4.getValueAt(i, 0).equals(true)) {
                    try {
                        List<Postulado> lista = Pctr.findPostuladoEntities();
                        for(Postulado postulado : lista) {
                            if( postulado.getCedula() == Integer.parseInt(miModel4.getValueAt(i, 1).toString()) ) {
                                Pctr.destroy(postulado.getCedula());
                                miModel4.removeRow(i);
                                i--;
                                selecciono = true;
                            }
                        }
                    }
                    catch (NonexistentEntityException ex) {
                        Logger.getLogger(VentanaPrincipal.class.getName()).log(Level.SEVERE, null, ex);
                    }
                }
            }
        }

        if (selecciono) {
            jTable11.setModel(miModel4);
            JOptionPane.showMessageDialog(this,"Los postulados seleccionados se elimnaron del sistema con éxito", "Información", 1);
        }
        else
            JOptionPane.showMessageDialog(this,"Debe seleccionar los pustulados a eliminar", "Aviso", 2);
        
    }//GEN-LAST:event_jButton28ActionPerformed

    private void jButton27ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton27ActionPerformed
        // TODO add your handling code here:

        PostuladoJpaController Pctr = new PostuladoJpaController();
        List<Postulado> lista = Pctr.findPostuladoEntities();

        //Código para eliminar todas las filas de la tabla
        for (int i = 0; i<miModel4.getRowCount(); i++) {
            miModel4.removeRow(i);
            i--;
        }
        
        for(Postulado postulado : lista) {
           Vector row=new Vector();

           row.add(postulado.getSeleccion());
           row.add(postulado.getCedula());
           row.add(postulado.getNombre());
           row.add(postulado.getApellido());
           row.add(postulado.getTelefono());
           row.add(postulado.getEmail());

           miModel4.addRow(row);

        }

        jTable11.setModel(miModel4);
    }//GEN-LAST:event_jButton27ActionPerformed

    private void jLabel134MouseEntered(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel134MouseEntered
        // TODO add your handling code here:
        jLabel134.setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
        jLabel2.setText("Acerca de Gestion de Voluntariados");
    }//GEN-LAST:event_jLabel134MouseEntered

    private void jLabel134MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel134MouseClicked
        // TODO add your handling code here:

        Icon icon = new ImageIcon(getClass().getResource("/imagenes/icono.png"));
        JOptionPane.showMessageDialog(this,"Gestión de Voluntariados Versión 2.0\n\nHecho por Alberto Tsang\n\n2010 todos los derechos reservados\n\nEste es un  Software de libre distribución\n\nInformación de contacto:\nE-mail: albertokicyiu@gmail.com", "Acerca de Gestion de Voluntariados", 1, icon);
    }//GEN-LAST:event_jLabel134MouseClicked

    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new VentanaPrincipal().setVisible(true);
            }
        });
    }


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton10;
    private javax.swing.JButton jButton11;
    private javax.swing.JButton jButton12;
    private javax.swing.JButton jButton13;
    private javax.swing.JButton jButton14;
    private javax.swing.JButton jButton15;
    private javax.swing.JButton jButton16;
    private javax.swing.JButton jButton17;
    private javax.swing.JButton jButton18;
    private javax.swing.JButton jButton19;
    private javax.swing.JButton jButton2;
    private javax.swing.JButton jButton20;
    private javax.swing.JButton jButton21;
    private javax.swing.JButton jButton22;
    private javax.swing.JButton jButton23;
    private javax.swing.JButton jButton24;
    private javax.swing.JButton jButton25;
    private javax.swing.JButton jButton26;
    private javax.swing.JButton jButton27;
    private javax.swing.JButton jButton28;
    private javax.swing.JButton jButton3;
    private javax.swing.JButton jButton4;
    private javax.swing.JButton jButton5;
    private javax.swing.JButton jButton6;
    private javax.swing.JButton jButton7;
    private javax.swing.JButton jButton8;
    private javax.swing.JButton jButton9;
    private javax.swing.JComboBox jComboBox1;
    private javax.swing.JComboBox jComboBox10;
    private javax.swing.JComboBox jComboBox11;
    private javax.swing.JComboBox jComboBox12;
    private javax.swing.JComboBox jComboBox13;
    private javax.swing.JComboBox jComboBox14;
    private javax.swing.JComboBox jComboBox15;
    private javax.swing.JComboBox jComboBox16;
    private javax.swing.JComboBox jComboBox17;
    private javax.swing.JComboBox jComboBox2;
    private javax.swing.JComboBox jComboBox3;
    private javax.swing.JComboBox jComboBox4;
    private javax.swing.JComboBox jComboBox5;
    private javax.swing.JComboBox jComboBox6;
    private javax.swing.JComboBox jComboBox7;
    private javax.swing.JComboBox jComboBox8;
    private javax.swing.JComboBox jComboBox9;
    private com.toedter.calendar.JDateChooser jDateChooser1;
    private com.toedter.calendar.JDateChooser jDateChooser2;
    private com.toedter.calendar.JDateChooser jDateChooser3;
    private com.toedter.calendar.JDateChooser jDateChooser4;
    private com.toedter.calendar.JDateChooser jDateChooser5;
    private com.toedter.calendar.JDateChooser jDateChooser6;
    private com.toedter.calendar.JDateChooser jDateChooser7;
    private com.toedter.calendar.JDateChooser jDateChooser8;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel100;
    private javax.swing.JLabel jLabel101;
    private javax.swing.JLabel jLabel102;
    private javax.swing.JLabel jLabel103;
    private javax.swing.JLabel jLabel104;
    private javax.swing.JLabel jLabel105;
    private javax.swing.JLabel jLabel106;
    private javax.swing.JLabel jLabel107;
    private javax.swing.JLabel jLabel108;
    private javax.swing.JLabel jLabel109;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel110;
    private javax.swing.JLabel jLabel111;
    private javax.swing.JLabel jLabel112;
    private javax.swing.JLabel jLabel113;
    private javax.swing.JLabel jLabel114;
    private javax.swing.JLabel jLabel115;
    private javax.swing.JLabel jLabel116;
    private javax.swing.JLabel jLabel117;
    private javax.swing.JLabel jLabel118;
    private javax.swing.JLabel jLabel119;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel120;
    private javax.swing.JLabel jLabel121;
    private javax.swing.JLabel jLabel122;
    private javax.swing.JLabel jLabel123;
    private javax.swing.JLabel jLabel124;
    private javax.swing.JLabel jLabel125;
    private javax.swing.JLabel jLabel126;
    private javax.swing.JLabel jLabel127;
    private javax.swing.JLabel jLabel128;
    private javax.swing.JLabel jLabel129;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel130;
    private javax.swing.JLabel jLabel131;
    private javax.swing.JLabel jLabel132;
    private javax.swing.JLabel jLabel133;
    private javax.swing.JLabel jLabel134;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel16;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel18;
    private javax.swing.JLabel jLabel19;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel20;
    private javax.swing.JLabel jLabel21;
    private javax.swing.JLabel jLabel22;
    private javax.swing.JLabel jLabel23;
    private javax.swing.JLabel jLabel24;
    private javax.swing.JLabel jLabel25;
    private javax.swing.JLabel jLabel26;
    private javax.swing.JLabel jLabel27;
    private javax.swing.JLabel jLabel28;
    private javax.swing.JLabel jLabel29;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel30;
    private javax.swing.JLabel jLabel31;
    private javax.swing.JLabel jLabel32;
    private javax.swing.JLabel jLabel33;
    private javax.swing.JLabel jLabel34;
    private javax.swing.JLabel jLabel35;
    private javax.swing.JLabel jLabel36;
    private javax.swing.JLabel jLabel37;
    private javax.swing.JLabel jLabel38;
    private javax.swing.JLabel jLabel39;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel40;
    private javax.swing.JLabel jLabel41;
    private javax.swing.JLabel jLabel42;
    private javax.swing.JLabel jLabel43;
    private javax.swing.JLabel jLabel44;
    private javax.swing.JLabel jLabel45;
    private javax.swing.JLabel jLabel46;
    private javax.swing.JLabel jLabel47;
    private javax.swing.JLabel jLabel48;
    private javax.swing.JLabel jLabel49;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel50;
    private javax.swing.JLabel jLabel51;
    private javax.swing.JLabel jLabel52;
    private javax.swing.JLabel jLabel53;
    private javax.swing.JLabel jLabel54;
    private javax.swing.JLabel jLabel55;
    private javax.swing.JLabel jLabel56;
    private javax.swing.JLabel jLabel57;
    private javax.swing.JLabel jLabel58;
    private javax.swing.JLabel jLabel59;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel60;
    private javax.swing.JLabel jLabel61;
    private javax.swing.JLabel jLabel62;
    private javax.swing.JLabel jLabel63;
    private javax.swing.JLabel jLabel64;
    private javax.swing.JLabel jLabel65;
    private javax.swing.JLabel jLabel66;
    private javax.swing.JLabel jLabel67;
    private javax.swing.JLabel jLabel68;
    private javax.swing.JLabel jLabel69;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel70;
    private javax.swing.JLabel jLabel71;
    private javax.swing.JLabel jLabel72;
    private javax.swing.JLabel jLabel73;
    private javax.swing.JLabel jLabel74;
    private javax.swing.JLabel jLabel75;
    private javax.swing.JLabel jLabel76;
    private javax.swing.JLabel jLabel77;
    private javax.swing.JLabel jLabel78;
    private javax.swing.JLabel jLabel79;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel80;
    private javax.swing.JLabel jLabel81;
    private javax.swing.JLabel jLabel82;
    private javax.swing.JLabel jLabel83;
    private javax.swing.JLabel jLabel84;
    private javax.swing.JLabel jLabel85;
    private javax.swing.JLabel jLabel86;
    private javax.swing.JLabel jLabel87;
    private javax.swing.JLabel jLabel88;
    private javax.swing.JLabel jLabel89;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JLabel jLabel90;
    private javax.swing.JLabel jLabel91;
    private javax.swing.JLabel jLabel92;
    private javax.swing.JLabel jLabel93;
    private javax.swing.JLabel jLabel94;
    private javax.swing.JLabel jLabel95;
    private javax.swing.JLabel jLabel96;
    private javax.swing.JLabel jLabel97;
    private javax.swing.JLabel jLabel98;
    private javax.swing.JLabel jLabel99;
    private javax.swing.JLayeredPane jLayeredPane1;
    private javax.swing.JLayeredPane jLayeredPane10;
    private javax.swing.JLayeredPane jLayeredPane11;
    private javax.swing.JLayeredPane jLayeredPane12;
    private javax.swing.JLayeredPane jLayeredPane13;
    private javax.swing.JLayeredPane jLayeredPane14;
    private javax.swing.JLayeredPane jLayeredPane15;
    private javax.swing.JLayeredPane jLayeredPane16;
    private javax.swing.JLayeredPane jLayeredPane17;
    private javax.swing.JLayeredPane jLayeredPane18;
    private javax.swing.JLayeredPane jLayeredPane19;
    private javax.swing.JLayeredPane jLayeredPane2;
    private javax.swing.JLayeredPane jLayeredPane20;
    private javax.swing.JLayeredPane jLayeredPane21;
    private javax.swing.JLayeredPane jLayeredPane22;
    private javax.swing.JLayeredPane jLayeredPane23;
    private javax.swing.JLayeredPane jLayeredPane24;
    private javax.swing.JLayeredPane jLayeredPane25;
    private javax.swing.JLayeredPane jLayeredPane26;
    private javax.swing.JLayeredPane jLayeredPane27;
    private javax.swing.JLayeredPane jLayeredPane28;
    private javax.swing.JLayeredPane jLayeredPane29;
    private javax.swing.JLayeredPane jLayeredPane3;
    private javax.swing.JLayeredPane jLayeredPane30;
    private javax.swing.JLayeredPane jLayeredPane31;
    private javax.swing.JLayeredPane jLayeredPane32;
    private javax.swing.JLayeredPane jLayeredPane33;
    private javax.swing.JLayeredPane jLayeredPane34;
    private javax.swing.JLayeredPane jLayeredPane4;
    private javax.swing.JLayeredPane jLayeredPane5;
    private javax.swing.JLayeredPane jLayeredPane6;
    private javax.swing.JLayeredPane jLayeredPane7;
    private javax.swing.JLayeredPane jLayeredPane8;
    private javax.swing.JLayeredPane jLayeredPane9;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel10;
    private javax.swing.JPanel jPanel11;
    private javax.swing.JPanel jPanel12;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JPanel jPanel6;
    private javax.swing.JPanel jPanel7;
    private javax.swing.JPanel jPanel8;
    private javax.swing.JPanel jPanel9;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane10;
    private javax.swing.JScrollPane jScrollPane11;
    private javax.swing.JScrollPane jScrollPane12;
    private javax.swing.JScrollPane jScrollPane13;
    private javax.swing.JScrollPane jScrollPane14;
    private javax.swing.JScrollPane jScrollPane15;
    private javax.swing.JScrollPane jScrollPane16;
    private javax.swing.JScrollPane jScrollPane17;
    private javax.swing.JScrollPane jScrollPane18;
    private javax.swing.JScrollPane jScrollPane19;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane20;
    private javax.swing.JScrollPane jScrollPane21;
    private javax.swing.JScrollPane jScrollPane22;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JScrollPane jScrollPane5;
    private javax.swing.JScrollPane jScrollPane6;
    private javax.swing.JScrollPane jScrollPane7;
    private javax.swing.JScrollPane jScrollPane8;
    private javax.swing.JScrollPane jScrollPane9;
    private javax.swing.JTabbedPane jTabbedPane1;
    private javax.swing.JTabbedPane jTabbedPane2;
    private javax.swing.JTabbedPane jTabbedPane3;
    private javax.swing.JTabbedPane jTabbedPane4;
    private javax.swing.JTable jTable1;
    private javax.swing.JTable jTable10;
    private javax.swing.JTable jTable11;
    private javax.swing.JTable jTable2;
    private javax.swing.JTable jTable3;
    private javax.swing.JTable jTable4;
    private javax.swing.JTable jTable5;
    private javax.swing.JTable jTable6;
    private javax.swing.JTable jTable7;
    private javax.swing.JTable jTable8;
    private javax.swing.JTable jTable9;
    private javax.swing.JTextArea jTextArea1;
    private javax.swing.JTextArea jTextArea10;
    private javax.swing.JTextArea jTextArea11;
    private javax.swing.JTextArea jTextArea2;
    private javax.swing.JTextArea jTextArea3;
    private javax.swing.JTextArea jTextArea4;
    private javax.swing.JTextArea jTextArea5;
    private javax.swing.JTextArea jTextArea6;
    private javax.swing.JTextArea jTextArea7;
    private javax.swing.JTextArea jTextArea8;
    private javax.swing.JTextArea jTextArea9;
    private javax.swing.JTextField jTextField1;
    private javax.swing.JTextField jTextField10;
    private javax.swing.JTextField jTextField11;
    private javax.swing.JTextField jTextField12;
    private javax.swing.JTextField jTextField13;
    private javax.swing.JTextField jTextField14;
    private javax.swing.JTextField jTextField15;
    private javax.swing.JTextField jTextField16;
    private javax.swing.JTextField jTextField17;
    private javax.swing.JTextField jTextField18;
    private javax.swing.JTextField jTextField19;
    private javax.swing.JTextField jTextField2;
    private javax.swing.JTextField jTextField20;
    private javax.swing.JTextField jTextField21;
    private javax.swing.JTextField jTextField22;
    private javax.swing.JTextField jTextField23;
    private javax.swing.JTextField jTextField24;
    private javax.swing.JTextField jTextField25;
    private javax.swing.JTextField jTextField26;
    private javax.swing.JTextField jTextField27;
    private javax.swing.JTextField jTextField28;
    private javax.swing.JTextField jTextField29;
    private javax.swing.JTextField jTextField3;
    private javax.swing.JTextField jTextField30;
    private javax.swing.JTextField jTextField31;
    private javax.swing.JTextField jTextField32;
    private javax.swing.JTextField jTextField33;
    private javax.swing.JTextField jTextField34;
    private javax.swing.JTextField jTextField4;
    private javax.swing.JTextField jTextField5;
    private javax.swing.JTextField jTextField6;
    private javax.swing.JTextField jTextField7;
    private javax.swing.JTextField jTextField8;
    private javax.swing.JTextField jTextField9;
    // End of variables declaration//GEN-END:variables
    private File archivo;

    Image getImage(byte[] bytes, boolean isThumbnail) throws IOException {

        ByteArrayInputStream bis = new ByteArrayInputStream(bytes);
        Iterator readers = ImageIO.getImageReadersByFormatName("jpeg");
        ImageReader reader = (ImageReader) readers.next();
        Object source = bis; // File or InputStream
        ImageInputStream iis = ImageIO.createImageInputStream(source);
        reader.setInput(iis, true);
        ImageReadParam param = reader.getDefaultReadParam();
        if (isThumbnail) {

            param.setSourceSubsampling(4, 4, 0, 0);

        }
        return reader.read(0, param);

    }
     //Returns the contents of the file in a byte array.
     public static byte[] getBytesFromFile(File file) throws IOException {
         InputStream is = new FileInputStream(file);

      // Get the size of the file
         long length = file.length();

         // You cannot create an array using a long type.
         // It needs to be an int type.
         // Before converting to an int type, check
         // to ensure that file is not larger than Integer.MAX_VALUE.
         if (length > Integer.MAX_VALUE) {
             // File is too large
         }

         // Create the byte array to hold the data
         byte[] bytes = new byte[(int)length];

         // Read in the bytes
         int offset = 0; int numRead = 0;
         while (offset < bytes.length && (numRead=is.read(bytes, offset, bytes.length-offset)) >= 0) {
             offset += numRead;
         }

         // Ensure all the bytes have been read in
         if (offset < bytes.length) {
             throw new IOException("Could not completely read file "+file.getName());
         }

         // Close the input stream and return bytes
         is.close();
         return bytes;
     }

}
